aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | Add GPIO interrupt support and embedded-hal-async trait implementation (#38)MathisDerooNXP2025-11-2612-24/+2005
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2512-12/+1342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-2516-240/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow the HAL lpuart driver to correctly configure pins as requested on init.
| | * | | | | | | Remove the pac singleton function (#42)James Munns2025-11-248-32/+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-243-16/+16
| | | | | | | | |
| | * | | | | | | Introduce clkout peripheral (#36)James Munns2025-11-246-6/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces a ClockOut peripheral, allowing for ensuring that internal clocks are operating correctly. Also fixes some incorrect PLL/Div4 usage.
| | * | | | | | | Merge pull request #40 from felipebalbi/fix-clkdivJames Munns2025-11-222-12/+8
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix clkdiv configuration
| | | * | | | | | | Fix clkdiv configurationFelipe Balbi2025-11-212-12/+8
| | |/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DIV should be modified while the clock is halted, not after it's already running.
| | * | | | | | | Update to latest PAC (#39)Felipe Balbi2025-11-215-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It adds a complete Mux enum Co-authored-by: Felipe Balbi <[email protected]>
| | * | | | | | | chore(deps): bump actions/checkout from 5 to 6 (#35)dependabot[bot]2025-11-214-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| | * | | | | | | Gpio support v2 (#26)MathisDerooNXP2025-11-215-105/+278
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1913-776/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-1818-185/+827
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
| | * | | | | | | Fix rolling workflow (#23)Felipe Balbi2025-11-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| | * | | | | | | Merge pull request #11 from jamesmunns/james/impl-clocksJames Munns2025-11-1830-1471/+1903
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement initial `clock` driver. This PR introduces an initial two-phase clock driver system: 1. The first stage is responsible for initializing the core/system clocks at the time of `embassy_mcxa::init()` 2. The second stage is done on creation of peripherals This work is limited to currently used clocks and peripherals, but has room for expansion for later peripherals. This model is based on the preliminary refactoring performed for the `embassy-imxrt` crate.
| | | * | | | | | | Prune unnecessary exemptionsFelipe Balbi2025-11-172-453/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Felipe Balbi <[email protected]>
| | | * | | | | | | Merge remote-tracking branch 'odp/main' into james/impl-clocksFelipe Balbi2025-11-1710-104/+25
| | | |\ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | |
| | * | | | | | | | 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-176-121/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
| | * | | | | | | | chore(deps): bump embedded-io-async from 0.6.1 to 0.7.0 (#17)dependabot[bot]2025-11-172-5/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [embedded-io-async](https://github.com/rust-embedded/embedded-hal) from 0.6.1 to 0.7.0. - [Release notes](https://github.com/rust-embedded/embedded-hal/releases) - [Commits](https://github.com/rust-embedded/embedded-hal/compare/embedded-io-async-v0.6.1...embedded-io-async-v0.7.0) --- updated-dependencies: - dependency-name: embedded-io-async dependency-version: 0.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| | | * | | | | | | Correct clk/rst field logicJames Munns2025-11-174-18/+21
| | | | | | | | | |
| | | * | | | | | | Restore examplesJames Munns2025-11-172-12/+12
| | | | | | | | | |
| | | * | | | | | | Fill in main_clk stateJames Munns2025-11-171-1/+6
| | | | | | | | | |
| | | * | | | | | | Docs pass and organization cleanupJames Munns2025-11-174-522/+821
| | | | | | | | | |
| | | * | | | | | | 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-1428-614/+789
| | | |\ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | |
| | * | | | | | | | Move examples to a package of their own (#16)Felipe Balbi2025-11-1325-248/+834
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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]>
| | * | | | | | | | Remove a lot of text from README.md (#15)Felipe Balbi2025-11-131-355/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New text will be added as necessary. Co-authored-by: Felipe Balbi <[email protected]>
| | * | | | | | | | Add status badges (#14)Felipe Balbi2025-11-132-16/+6
| | | | | | | | | |
| | * | | | | | | | chore(deps): bump actions/download-artifact from 4 to 6 (#10)dependabot[bot]2025-11-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 6. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| | | * | | | | | | Continue working on examplesJames Munns2025-11-1418-506/+248
| | | | | | | | | |
| | | * | | | | | | More work on examplesJames Munns2025-11-1414-262/+186
| | | | | | | | | |
| | | * | | | | | | Cargo fmtJames Munns2025-11-143-20/+7
| | | | | | | | | |
| | | * | | | | | | Implement SPConfHelper for OSTimer and ADCJames Munns2025-11-144-39/+229
| | | | | | | | | |
| | | * | | | | | | Plumb clocks changes to lpuartJames Munns2025-11-145-174/+291
| | | | | | | | | |
| | | * | | | | | | Merge remote-tracking branch 'origin/main' into james/impl-clocksJames Munns2025-11-1315-46/+687
| | | |\ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | |
| | * | | | | | | | Merge pull request #13 from jamesmunns/james/repacFelipe Balbi2025-11-1315-46/+687
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Switch to new PAC commit
| | | * | | | | | | | Bump msrvJames Munns2025-11-131-1/+3
| | | | | | | | | | |
| | | * | | | | | | | Manually fix clippy lintsJames Munns2025-11-136-9/+33
| | | | | | | | | | |
| | | * | | | | | | | autofix clippy lintsJames Munns2025-11-136-25/+37
| | | | | | | | | | |
| | | * | | | | | | | Install cargo-hack before attempting to use itFelipe Balbi2025-11-131-0/+3
| | | | | | | | | | |
| | | * | | | | | | | Tweak CI workflows for embassy-mcxaJames Munns2025-11-134-13/+17
| | | | | | | | | | |
| | | * | | | | | | | Remove Cargo.lock from gitignore, add Cargo.lockJames Munns2025-11-132-1/+597
| | | | | | | | | | |
| | | * | | | | | | | Switch to new PAC commitJames Munns2025-11-131-1/+1
| | |/ / / / / / / /
| | | * | | | | | | Merge remote-tracking branch 'origin/main' into james/impl-clocksJames Munns2025-11-126-27/+16
| | | |\ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | |
| | * | | | | | | | Merge pull request #12 from jamesmunns/james/remove-example-featsFelipe Balbi2025-11-126-27/+16
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Remove example feats, get examples building
| | | * | | | | | | | Remove example feats, get examples buildingJames Munns2025-11-126-27/+16
| | |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No CI, but this can be checked with `cargo check --all --examples`, which now succeeds.
| | | * | | | | | | Start adding peripheral helpersJames Munns2025-11-123-8/+188
| | | | | | | | | |
| | | * | | | | | | Move clocks into moduleJames Munns2025-11-121-0/+0
| | | | | | | | | |