aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * Move to subfolderJames Munns2025-12-0420-2335/+0
| |
| * Rtc support v2 (#91)MathisDerooNXP2025-12-041-33/+6
| | | | | | | | Signed-off-by: Mathis Deroo <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
| * I2c Async (#50)Felipe Balbi2025-12-031-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * I2c Async Signed-off-by: Felipe Balbi <[email protected]> * Fix i2c read bug Signed-off-by: Felipe Balbi <[email protected]> * Introduce wait_for() Signed-off-by: Felipe Balbi <[email protected]> * Review comments Signed-off-by: Felipe Balbi <[email protected]> * more review comments Signed-off-by: Felipe Balbi <[email protected]> * review comments Signed-off-by: Felipe Balbi <[email protected]> * review comments Signed-off-by: Felipe Balbi <[email protected]> * convert async fn to impl Future Signed-off-by: Felipe Balbi <[email protected]> --------- Signed-off-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]>
| * Refactor LPUART driver constructors (#51)JanKomarekNXP2025-12-013-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Refactor LPUART driver constructors - Add new_with_rtscts(), new_with_rts(), new_with_cts() methods - Store RTS/CTS pins in TX/RX structs - Remove enable_tx, enable_rx, enable_rx_rts, enable_tx_cts config fields - Fix typo: msb_firs -> msb_first - Fix write_byte() return type to Result<()> * Update hello example for LPUART driver changes * Refactor buffered LPUART initialization logic - Split new_inner() into init_common() and separate helpers for full-duplex, TX-only, and RX-only - Replace assert!() with proper Error::InvalidArgument returns for empty buffers - Simplify constructor implementations by removing expect() calls
| * Remove Drive/Slew settings for Input pin (#57)James Munns2025-11-293-6/+9
| | | | | | | | | | * Don't set slew+strength for inputs * Update example
| * Fix LPI2C2 example (#56)James Munns2025-11-281-1/+8
| | | | | | Fix LPI2C2 example
| * Add GPIO interrupt support and embedded-hal-async trait implementation (#38)MathisDerooNXP2025-11-263-1/+443
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add GPIO interrupt support and embedded-hal-async trait implementation Signed-off-by: Mathis Deroo <[email protected]> * Run cargo fmt * Improve GPIO driver interrupt mechanism and example - GPIO interrupt managed internally at the HAL level, - Renamed and cleaned gpio_interrupt example; now button_async.rs, - Use BitIter instead of simple for loop in the irq handler, - Fix comments and add "rt" wrappen to GPIO IRQ handler. Signed-off-by: Mathis Deroo <[email protected]> * Modify INTERRUPT_DETECTED (AtomicBool to AtomicU32) to work with pin number and not only port number interrupt Signed-off-by: Mathis Deroo <[email protected]> * add embedded_hal_async::digital::* traits Signed-off-by: Mathis Deroo <[email protected]> * Update irq_handler with BitIter loop Co-authored-by: Felipe Balbi <[email protected]> * Add suggested changes Signed-off-by: Mathis Deroo <[email protected]> * cargo fmt Signed-off-by: Felipe Balbi <[email protected]> * WIP: Modify Wakers from AtomicWaker to WaitMap, with pin number (per PORT) as key Signed-off-by: Mathis Deroo <[email protected]> * Tweak maitake-sync usage * Improve docs * refactor a bit * Move all of the async+interrupt stuff into a module * Remove defmt debug traces Signed-off-by: Mathis Deroo <[email protected]> * cargo vet * Move e-hal-async impls into the gated block * "rt", begone! --------- Signed-off-by: Mathis Deroo <[email protected]> Signed-off-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]> Co-authored-by: James Munns <[email protected]>
| * I2c Controller Blocking Driver (#27)Felipe Balbi2025-11-254-8/+590
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * I2c Master Signed-off-by: Felipe Balbi <[email protected]> * Fix review comments Signed-off-by: Felipe Balbi <[email protected]> * More review comments Signed-off-by: Felipe Balbi <[email protected]> --------- Signed-off-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]>
| * Wire up Lpuart pins (#43)James Munns2025-11-258-117/+28
| | | | | | Allow the HAL lpuart driver to correctly configure pins as requested on init.
| * Remove the pac singleton function (#42)James Munns2025-11-247-17/+10
| | | | | | | | There will be a follow up PR that removes the unsafe `init` functions, but I wanted to squash this out first in case I don't get to it all today.
| * Update to patched PAC with corrected Div4 (#41)James Munns2025-11-241-1/+1
| |
| * Introduce clkout peripheral (#36)James Munns2025-11-242-1/+70
| | | | | | | | | | Introduces a ClockOut peripheral, allowing for ensuring that internal clocks are operating correctly. Also fixes some incorrect PLL/Div4 usage.
| * Update to latest PAC (#39)Felipe Balbi2025-11-211-1/+1
| | | | | | | | | | It adds a complete Mux enum Co-authored-by: Felipe Balbi <[email protected]>
| * Gpio support v2 (#26)MathisDerooNXP2025-11-212-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve GPIO driver and add button example - port and pcr registers are defined using paste! - added pin configuration for slew rate, drive strength, mux function, etc... - added button example to showcase input gpio feature Signed-off-by: Mathis Deroo <[email protected]> * Add pull-up pull-down config support for input gpio Signed-off-by: Mathis Deroo <[email protected]> * Replace GPIOs enum with existing ones in the PAC Signed-off-by: Mathis Deroo <[email protected]> * Remove init_gpio_pin function as it is done in hal init config Signed-off-by: Mathis Deroo <[email protected]> * Integrate feedback for the GPIO driver - Add again missing IO peripherals - Added function to configure separately slew rate, drive strength, pull. - Revert comment changes Signed-off-by: Mathis Deroo <[email protected]> * Create user-readable field for the pin configuration Signed-off-by: Mathis Deroo <[email protected]> * examples: button: remove left-over OSTIMER initialization While at that, also cargo fmt * Fix warnings * Add documentation for public functions Signed-off-by: Mathis Deroo <[email protected]> * Expose port and pcr registers to AnyPin implementation Signed-off-by: Mathis Deroo <[email protected]> * Remove unnecessary change Signed-off-by: Mathis Deroo <[email protected]> * Run cargo fmt --------- Signed-off-by: Mathis Deroo <[email protected]> Co-authored-by: Felipe Balbi <[email protected]>
| * OSTimer updates (#24)Felipe Balbi2025-11-197-745/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initialize OSTIMER0 during HAL initialization Provide the user with a working time driver. Signed-off-by: Felipe Balbi <[email protected]> * Handle time_driver interrupt internally Signed-off-by: Felipe Balbi <[email protected]> * Gate `time-driver` impl behind a `time` flag Also prevents creation of an `Ostimer` instance if the `time` feature is active. * Remove some dead code --------- Signed-off-by: Felipe Balbi <[email protected]> Co-authored-by: James Munns <[email protected]>
| * Correct gpio driver (#9)Felipe Balbi2025-11-1813-116/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Correct gpio driver Signed-off-by: Felipe Balbi <[email protected]> * Simplify blinky example Make it look like every other HAL for consistency. While at that, also rename the example to match the name used by other HALs. Signed-off-by: Felipe Balbi <[email protected]> * Add some documentation to GPIO driver Signed-off-by: Felipe Balbi <[email protected]> * Enable GPIO clocks during HAL initialization Provide the user with working GPIO clocks. Signed-off-by: Felipe Balbi <[email protected]> --------- Signed-off-by: Felipe Balbi <[email protected]> Co-authored-by: Felipe Balbi <[email protected]>
| * Merge remote-tracking branch 'odp/main' into james/impl-clocksFelipe Balbi2025-11-175-4/+11
| |\
| | * Allow writing binary to flash (#20)Felipe Balbi2025-11-174-3/+11
| | | | | | | | | | | | | | | Turns out probe-rs works out of the box. Signed-off-by: Felipe Balbi <[email protected]>
| | * Let HAL build in isolation (#21)Felipe Balbi2025-11-171-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "chore(deps): bump embedded-io-async from 0.6.1 to 0.7.0 (#17)" This reverts commit 011c3b2de9361496faa0eea75ae19a77f2698f88. * Let HAL build in isolation while at that, also remove bogus dependency on embassy-executor. Signed-off-by: Felipe Balbi <[email protected]> * Certify syn 2.0.110 Signed-off-by: Felipe Balbi <[email protected]> --------- Signed-off-by: Felipe Balbi <[email protected]>
| * | Correct clk/rst field logicJames Munns2025-11-172-3/+3
| | |
| * | Restore examplesJames Munns2025-11-171-4/+4
| | |
| * | Remove redundant importJames Munns2025-11-141-1/+1
| | |
| * | A little follow-up cleanupJames Munns2025-11-1412-32/+34
| | |
| * | Merge remote-tracking branch 'origin/main' into james/impl-clocksJames Munns2025-11-1418-107/+767
| |\|
| | * Move examples to a package of their own (#16)Felipe Balbi2025-11-1320-114/+826
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move examples to a package of their own * cargo +nightly fmt * Add missing safety doc * cargo clippy examples * fmt again --------- Co-authored-by: Felipe Balbi <[email protected]>
| * | Continue working on examplesJames Munns2025-11-1412-171/+200
| | |
| * | More work on examplesJames Munns2025-11-147-94/+84
| |/
| * Remove example feats, get examples buildingJames Munns2025-11-125-15/+15
| | | | | | | | | | No CI, but this can be checked with `cargo check --all --examples`, which now succeeds.
| * cargo +nightly fmtFelipe Balbi2025-11-0710-64/+27
| | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| * Reduce number of featuresFelipe Balbi2025-11-0712-200/+58
| | | | | | | | | | | | We don't need features for drivers that always exist. Signed-off-by: Felipe Balbi <[email protected]>
| * Fix uart_interrupt example: enable RX interrupts in peripheralBogdan Petru Chircu Mare2025-11-061-1/+3
| | | | | | | | | | | | | | | | | | | | The uart_interrupt example was not echoing received characters because the RX interrupt enable bit (RIE) was not being set in the LPUART control register. The NVIC interrupt was configured and the handler was installed, but the peripheral itself was not generating interrupts. Added uart.enable_rx_interrupts() call to enable RX data interrupts in the LPUART2 peripheral before entering the main loop.
| * feat(mcxa276): initial HAL importBogdan Petru Chircu Mare2025-10-3113-0/+1566
|
* stm32: add wpan dependency to wba examplesxoviat2025-12-031-0/+6
|
* wpan: refactor into wb55xoviat2025-12-031-2/+2
|
* Update LED pin number to PC4Cesar Tamayo Claro2025-12-031-1/+2
|
* Update blinky example logicCesar Tamayo Claro2025-12-031-1/+29
|
* docs: fix rp235x pio_i2s example comment9names2025-12-031-2/+2
|
* timer: use u32 for high-level apixoviat2025-12-012-2/+2
|
* chore: release embassy-rp, cyw43 and cyw43-pioUlf Lilleengen2025-11-273-8/+8
|
* feat: support nrf54 GRTC as time-driverUlf Lilleengen2025-11-263-57/+31
| | | | | | | * Refactor GRTC peripheral splitting it into multiple channels * Reserve channel 1 for time-driver if enabled * Implement time-driver using GRTC (RTC peripheral is now removed). * Add timer example to nrf54l15