aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Update set date to Unix EpochCesar Tamayo Claro2025-12-091-1/+1
| | | | |
| | * | | Undo smt32f3 accidental change 2.0Cesar Tamayo Claro2025-12-091-2/+1
| | | | |
| | * | | Undo smt32f3 accidental changeCesar Tamayo Claro2025-12-091-1/+1
| | | | |
| | * | | Add basic RTC supportCesar Tamayo Claro2025-12-092-2/+66
| | | | |
| * | | | Merge pull request #5018 from xoviat/sdioxoviat2025-12-103-31/+30
| |\ \ \ \ | | | | | | | | | | | | | | | | | | stm32: refactor sdmmc module
| | * | | | sdmmc: refactor sd card creationxoviat2025-12-093-31/+30
| | | | | |
* | | | | | trng: Add dedicated constructors without configurationFelipe Balbi2025-12-111-2/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These three constructors guarantee TRNG will work for the requested amount of entropy samples.
* | | | | | MCXA TRNG driverFelipe Balbi2025-12-092-0/+89
|/ / / / /
* | | / / allow again to set nodiv independently of master clock dividerRoman Lim2025-12-092-2/+1
| |_|/ / |/| | |
* | | | Merge pull request #5015 from jamesmunns/james/dma-suggestionsJames Munns2025-12-0911-0/+1573
|\ \ \ \ | |/ / / |/| | | | | | | [MCXA]: Extend DMA interface
| * | | Add error state for DMA transfersJames Munns2025-12-092-3/+3
| | | |
| * | | Change transfer to return a resultJames Munns2025-12-092-2/+2
| | | |
| * | | Use saddr read instead of interrupt to avoid double handler definitionJames Munns2025-12-093-110/+61
| | | |
| * | | rustfmtJames Munns2025-12-095-6/+6
| | | |
| * | | Clean up remaining examples, move some to "raw" examplesJames Munns2025-12-096-331/+127
| | | |
| * | | Enforce scatter gather API staticallyJames Munns2025-12-091-18/+2
| | | |
| * | | Work on scatter-gather-builderJames Munns2025-12-081-111/+57
| | | |
| * | | Clean up examples, move interrupts to be more fully managedJames Munns2025-12-0815-256/+72
| | | |
| * | | Clean up some common PAC operations using helper methodsJames Munns2025-12-051-53/+22
| | | |
| * | | use core::fmt::Write instead of home-rolled fmtJames Munns2025-12-058-229/+16
| | | |
| * | | Create separate ring buffered RX receiver to encapsulate unsafeJames Munns2025-12-053-12/+6
| | | |
| * | | Enable DMA interrupts in constructorsJames Munns2025-12-051-6/+0
| | | |
| * | | Merge remote-tracking branch 'james-mcxa/feat/mcxa276-hal' into james/rebase-dmaJames Munns2025-12-0510-0/+2336
| |\ \ \
| | * | | MoveJames Munns2025-12-0529-0/+0
| | | | |
| | * | | Merge upstream/main to incorporate LPUART constructor refactor (#51) and ↵Bogdan Petru Chircu Mare2025-12-0116-37/+18
| | |\ \ \ | | | | | | | | | | | | | | | | | | GPIO Drive/Slew fix (#57)
| | * | | | refactor(dma): move DMA_MAX_TRANSFER_SIZE to dma module and init during HAL ↵Bogdan Petru Chircu Mare2025-12-013-42/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | startup Address felipebalbi's review comments on PR #52: - Move DMA_MAX_TRANSFER_SIZE constant from lpuart/mod.rs to dma.rs where it logically belongs (describes eDMA4 hardware limitation) - Add public dma::init() function called during hal::init() instead of lazy initialization via ensure_init() - Remove ensure_init() entirely since it's no longer needed - Remove ensure_init() calls from DmaChannel::new() and from_token() - Remove ensure_init() calls from examples (dma_channel_link, dma_scatter_gather) - Refactor lpuart_ring_buffer example to use LpuartDma::new() + split() pattern instead of separate TX/RX drivers - Add [lints.rust] section to suppress unexpected_cfgs warning for 'rt' feature used by embassy_hal_internal::interrupt_mod! macro This makes DMA initialization explicit during HAL startup (like GPIO) and keeps DMA-specific constants in the DMA module.
| | * | | | Apply rustfmt formatting fixesBogdan Petru Chircu Mare2025-12-0110-147/+201
| | | | | |
| | * | | | Updated per PR #52 feedbackBogdan Petru Chircu Mare2025-11-2810-324/+114
| | | | | |
| | * | | | feat(dma): add DMA driver with 10 verified examplesBogdan Petru Chircu Mare2025-11-2810-0/+2531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initial DMA driver implementation for MCXA276 with: Core DMA Features: - DmaChannel type with ownership tracking via Channel trait - Transfer, RingBuffer, and ScatterGatherBuilder abstractions - Support for mem-to-mem, mem-to-peripheral, peripheral-to-mem transfers - Interrupt-driven completion with embassy async/await integration - Word size abstraction (u8, u16, u32) via Word trait LPUART DMA Integration: - LpuartTxDma and LpuartRxDma drivers for async UART with DMA - LpuartDma combined TX/RX driver - Automatic chunking for buffers > 0x7FFF bytes - DMA guards with Drop impl for safe cancellation 10 Verified Examples: - dma_mem2mem: Basic memory-to-memory copy - dma_memset: Memory fill with pattern - dma_uart_tx: UART transmit via DMA - dma_uart_rx: UART receive via DMA - dma_uart_loopback: Combined TX/RX loopback test - dma_scatter_gather: Linked descriptor chains - dma_channel_linking: Major/minor loop channel linking - dma_ring_buffer: Circular buffer for continuous streaming - dma_ping_pong: Double-buffering pattern - dma_software_trigger: Manual transfer triggering PR Feedback Addressed: - Use PAC accessor for LPUART DATA register instead of manual offset - Add EnableInterrupt enum to replace boolean parameter for readability - Add DMA guards with Drop impl for safe async cancellation - Automatic chunking for large buffers instead of returning error - Use NonNull<[W]> + PhantomData for RingBuffer (DMA acts like separate thread) - Remove edma parameter from all methods (single eDMA instance steals ptr internally) - Make edma_tcd() non-public (HAL should not expose PAC items)
* | | | | | Merge pull request #4992 from felipebalbi/mcxa/crcFelipe Balbi2025-12-082-0/+155
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | MCXA CRC
| * | | | | | review commentsFelipe Balbi2025-12-082-20/+84
| | | | | | |
| * | | | | | mcxa: crc: check all word typesFelipe Balbi2025-12-051-11/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| * | | | | | mcxa/crc: document the use of align_toFelipe Balbi2025-12-051-5/+5
| | | | | | |
| * | | | | | CRCFelipe Balbi2025-12-051-0/+39
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #74 Signed-off-by: Felipe Balbi <[email protected]>
* | | | | | Merge pull request #4995 from HaoboGu/feat/nrf54lm20Ulf Lilleengen2025-12-089-0/+244
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Add nrf54lm20 support
| * | | | | | chore: remove jlink script in nRF54LM20A example, use probe-rs insteadHaobo Gu2025-12-082-18/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Haobo Gu <[email protected]> chore: remove jlink script in nRF54LM20A example, use probe-rs instead Signed-off-by: Haobo Gu <[email protected]>
| * | | | | | feat: add nRF54LM20A supportHaobo Gu2025-12-0810-0/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Haobo Gu <[email protected]>
* | | | | | | Merge pull request #5005 from embassy-rs/nrf54-bootloaderUlf Lilleengen2025-12-086-11/+41
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | Add nrf54 embassy boot example
| * | | | | | chore: use feature guards for nrf54 in examplesUlf Lilleengen2025-12-083-13/+28
| | | | | | |
| * | | | | | feat: add support for nrf54 to embassy-boot examplesUlf Lilleengen2025-12-086-7/+22
| | | | | | |
* | | | | | | adc: type-erase regs instancexoviat2025-12-061-1/+1
| | | | | | |
* | | | | | | wpan: add libraries for wbaxoviat2025-12-062-2/+60
| |/ / / / / |/| | | | |
* | | | | | Remove some misc bitsJames Munns2025-12-041-1555/+0
| | | | | |
* | | | | | Tweak how target setting is handledJames Munns2025-12-041-0/+5
| | | | | |
* | | | | | rustfmtJames Munns2025-12-045-6/+6
| | | | | |
* | | | | | publish false on mcxa examplesJames Munns2025-12-041-1/+1
| | | | | |
* | | | | | Add repository fieldsJames Munns2025-12-041-0/+1
| | | | | |
* | | | | | Bump mcxa-pac to lower MSRV to 1.90James Munns2025-12-041-1/+1
| | | | | |
* | | | | | Import embassy-mcxa repoJames Munns2025-12-0420-0/+2335
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | Merge remote-tracking branch 'james-e-mcxa/james/upstream' into james/upstream-mcxa
| * | | | | Move examples to top level example folderJames Munns2025-12-0420-0/+2335
| | | | | |