aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | | | | sdmmc: use storage devices with referencexoviat2025-12-092-317/+403
| | | | | | | | | | |
| * | | | | | | | | | type-erase sdmmcxoviat2025-12-091-182/+212
| |/ / / / / / / / /
| | | | | | | * | | trng: Add dedicated constructors without configurationFelipe Balbi2025-12-112-39/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These three constructors guarantee TRNG will work for the requested amount of entropy samples.
| | | | | | | * | | rustfmtFelipe Balbi2025-12-091-1/+1
| | | | | | | | | |
| | | | | | | * | | MCXA TRNG driverFelipe Balbi2025-12-097-1/+717
| |_|_|_|_|_|/ / / |/| | | | | | | |
* | | | | | | | | Merge pull request #4706 from ↵xoviat2025-12-094-6/+8
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rolim/stm32-sai-allow-nodiv-and-master-clock-divider STM32/SAI: allow again to set nodiv independently of master clock divider
| * | | | | | | | | allow again to set nodiv independently of master clock dividerRoman Lim2025-12-094-6/+8
| | |_|/ / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #4975 from tonarino/cdm-adm-controlDario Nieuwenhuis2025-12-092-0/+11
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose `dtr()` and `rts()` on `cdc_acm::ControlChanged`
| * | | | | | | | | Don't forget the changelog!goodhoko2025-12-021-0/+1
| | | | | | | | | |
| * | | | | | | | | Expose dtr() and rts() on cdc_acm::ControlChangedgoodhoko2025-12-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What purpose that sturct has otherwise?
* | | | | | | | | | Merge pull request #5016 from diogo464/cyw43-get-rssiDario Nieuwenhuis2025-12-091-0/+8
|\ \ \ \ \ \ \ \ \ \ | |_|/ / / / / / / / |/| | | | | | | | | | | | | | | | | | | cyw43: added get_rssi to Controller
| * | | | | | | | | cyw43: added get_rssi to Controllerdiogo4642025-12-091-0/+8
| | |/ / / / / / / | |/| | | | | | |
* | | | | | | | | Merge pull request #5015 from jamesmunns/james/dma-suggestionsJames Munns2025-12-0917-77/+4740
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | | | | | | | | | | [MCXA]: Extend DMA interface
| * | | | | | | | rustfmtJames Munns2025-12-091-3/+7
| | | | | | | | |
| * | | | | | | | Add error state for DMA transfersJames Munns2025-12-093-9/+157
| | | | | | | | |
| * | | | | | | | Change transfer to return a resultJames Munns2025-12-093-7/+11
| | | | | | | | |
| * | | | | | | | Use saddr read instead of interrupt to avoid double handler definitionJames Munns2025-12-094-110/+62
| | | | | | | | |
| * | | | | | | | rustfmtJames Munns2025-12-0914-27/+23
| | | | | | | | |
| * | | | | | | | Make init private (suggestion from @felipebalbi)James Munns2025-12-091-39/+22
| | | | | | | | |
| * | | | | | | | Clean up remaining examples, move some to "raw" examplesJames Munns2025-12-0913-343/+143
| | | | | | | | |
| * | | | | | | | Enforce scatter gather API staticallyJames Munns2025-12-092-29/+10
| | | | | | | | |
| * | | | | | | | Work on scatter-gather-builderJames Munns2025-12-082-116/+65
| | | | | | | | |
| * | | | | | | | Clean up examples, move interrupts to be more fully managedJames Munns2025-12-0817-328/+93
| | | | | | | | |
| * | | | | | | | Clean up some common PAC operations using helper methodsJames Munns2025-12-052-329/+169
| | | | | | | | |
| * | | | | | | | use core::fmt::Write instead of home-rolled fmtJames Munns2025-12-059-229/+22
| | | | | | | | |
| * | | | | | | | Create separate ring buffered RX receiver to encapsulate unsafeJames Munns2025-12-055-18/+55
| | | | | | | | |
| * | | | | | | | Enable DMA interrupts in constructorsJames Munns2025-12-052-10/+18
| | | | | | | | |
| * | | | | | | | Merge remote-tracking branch 'james-mcxa/feat/mcxa276-hal' into james/rebase-dmaJames Munns2025-12-0516-42/+5445
| |\ \ \ \ \ \ \ \
| | * | | | | | | | MoveJames Munns2025-12-0566-0/+0
| | | | | | | | | |
| | * | | | | | | | Merge upstream/main to incorporate LPUART constructor refactor (#51) and ↵Bogdan Petru Chircu Mare2025-12-0119-294/+418
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GPIO Drive/Slew fix (#57)
| | * | | | | | | | | feat(dma): implement type-safe DMA request source APIBogdan Petru Chircu Mare2025-12-012-50/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace raw u8 DMA request sources with typed request system following the embassy-imxrt pattern. This provides compile-time verification that peripherals use correct DMA request sources. Changes: - Define DmaRequest trait for type-safe request sources - Add sealed SealedDmaRequest trait to prevent external implementation - Create Lpuart{0-5}{Tx,Rx}Request marker types for each LPUART DMA request - Update DmaChannel::set_request_source() to accept generic R: DmaRequest - Replace Instance::TX_DMA_REQ/RX_DMA_REQ u8 constants with associated types - Update all LPUART DMA call sites to use typed request API This prevents errors like using LPUART2_RX request for LPUART0 at compile time with zero runtime overhead. Addresses felipebalbi's review comment on PR #52 line 86.
| | * | | | | | | | | refactor(dma): move DMA_MAX_TRANSFER_SIZE to dma module and init during HAL ↵Bogdan Petru Chircu Mare2025-12-017-60/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0111-149/+204
| | | | | | | | | | |
| | * | | | | | | | | Updated per PR #52 feedbackBogdan Petru Chircu Mare2025-11-2812-407/+248
| | | | | | | | | | |
| | * | | | | | | | | feat(dma): add DMA driver with 10 verified examplesBogdan Petru Chircu Mare2025-11-2816-27/+5415
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #5007 from FabienTregan/complementary_pwm_pin_new_with_configxoviat2025-12-091-4/+23
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stm32: create new complementary pwm pin with config
| * | | | | | | | | | | stm32: create new complementary pwm pin with configFabien Trégan2025-12-091-4/+23
| | | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #5014 from jamesmunns/james/mcxa-docsJames Munns2025-12-091-1/+9
|\ \ \ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | [MCXA]: Add MCX-A256 to dev docs
| * | | | | | | | | | | Add MCX-A256 to dev docsJames Munns2025-12-091-1/+9
|/ / / / / / / / / / /
* | | | | | | | | | | Merge pull request #5004 from leftger/feat/wba-wpan-leftgerxoviat2025-12-085-35/+362
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wba: fix no_mangle attrs and enable mac bindings
| * | | | | | | | | | | wba: fix no_mangle attrs and enable mac bindingsGerzain Mata2025-12-075-35/+362
| | | | | | | | | | | |
* | | | | | | | | | | | Merge pull request #4992 from felipebalbi/mcxa/crcFelipe Balbi2025-12-085-0/+916
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MCXA CRC
| * | | | | | | | | | | | Fix more review commentsFelipe Balbi2025-12-081-34/+34
| | | | | | | | | | | | |
| * | | | | | | | | | | | review commentsFelipe Balbi2025-12-083-145/+161
| | | | | | | | | | | | |
| * | | | | | | | | | | | mcxa: crc: check all word typesFelipe Balbi2025-12-051-11/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| * | | | | | | | | | | | mcxa: crc: add generic methods to reduce duplicationFelipe Balbi2025-12-051-100/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| * | | | | | | | | | | | mcxa/crc: document the use of align_toFelipe Balbi2025-12-052-7/+23
| | | | | | | | | | | | |
| * | | | | | | | | | | | CRCFelipe Balbi2025-12-054-0/+798
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #74 Signed-off-by: Felipe Balbi <[email protected]>
* | | | | | | | | | | | | Merge pull request #5011 from xoviat/testxoviat2025-12-081-2/+16
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stm32/tests: allow some noise
| * | | | | | | | | | | | | stm32/tests: allow some noisexoviat2025-12-081-2/+16
| | | | | | | | | | | | | |