aboutsummaryrefslogtreecommitdiff
path: root/examples/rp
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge #984 #1006bors[bot]2022-10-122-0/+105
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 984: rp pico async i2c implementation r=Dirbaio a=jsgf This implements an interrupt-driven async i2c master. It is based on https://github.com/embassy-rs/embassy/pull/914, a bit of https://github.com/embassy-rs/embassy/pull/978 and `@ithinuel's` https://github.com/ithinuel/rp2040-async-i2c.git This is still work-in-progress, and is currently untested. 1006: Removes some of the code duplication for UarteWithIdle r=Dirbaio a=huntc This PR removes some of the code duplications for `UarteWithIdle` at the slight expense of requiring a split when using idle processing. As the nRF example illustrates though given the LoC removed, this expense seems worth the benefit in terms of maintenance, and the avoidance of copying over methods. My main motivation for this PR was actually due to the `event_endtx` method not having been copied across to the idle-related code. Tested the uart_idle example on my nRF52840-dk, and from within my app. Both appear to work fine. Co-authored-by: Jeremy Fitzhardinge <[email protected]> Co-authored-by: huntc <[email protected]>
| * embassy-rp i2c: async (non-blocking) exampleJeremy Fitzhardinge2022-10-011-0/+102
| | | | | | | | | | | | Simple example exercising an mcp23017 GPIO expander, configured on RP2040 GPIOs 14+15 (i2c1) with 8 inputs and 8 outputs. Input bit 0 controls whether to display a mcp23017 register dump.
| * embassy-rp: async i2c implementationJeremy Fitzhardinge2022-10-011-0/+3
| | | | | | | | | | | | | | | | | | This is an interrupt-driven async i2c master implementation. It makes as best use of the RP2040's i2c block's fifos as possible to minimize interrupts. It implements embedded_hal_async::i2c for easy interop. WIP async impl
* | all Cargo.toml: Add license to all crate Cargo.toml fileschrysn2022-10-071-0/+1
| | | | | | | | Closes: https://github.com/embassy-rs/embassy/issues/1002
* | update embedded-hal apiJeremy Fitzhardinge2022-10-012-2/+2
| | | | | | | | Also pin to alpha.9 since its a breaking change
* | rename to i2c_blockingJeremy Fitzhardinge2022-10-011-0/+0
| |
* | rp i2c: blocking exampleJeremy Fitzhardinge2022-10-011-0/+70
|/ | | | i2c example talking to mcp23017 i2c gpio expander.
* Update embedded-hal versions and explicitly pinUlf Lilleengen2022-09-291-6/+6
|
* usb: move classes into the `embassy-usb` crate.Dario Nieuwenhuis2022-09-263-4/+2
|
* Replace futures::future::join -> embassy_futures::join::join.Dario Nieuwenhuis2022-09-222-1/+2
|
* Update Rust nightly.Dario Nieuwenhuis2022-09-222-2/+0
| | | | Removes feature(generic_associated_types)
* Feature-gate time-driver in embassy-rpMathias2022-09-161-1/+1
|
* Cleanup examplesHenrik Alsér2022-09-012-4/+4
|
* Reorder argsHenrik Alsér2022-09-011-1/+1
|
* transfer_in_placeHenrik Alsér2022-09-011-1/+1
|
* Fix exampleHenrik Alsér2022-09-011-2/+3
|
* impl embedded-hal-asyncHenrik Alsér2022-09-011-4/+2
|
* exampleHenrik Alsér2022-09-012-2/+33
|
* net: feature-gate nightly-only async traits to allow building on stable.Dario Nieuwenhuis2022-08-302-2/+2
|
* Merge pull request #927 from embassy-rs/rp-usbDario Nieuwenhuis2022-08-303-0/+373
|\ | | | | rp: add usb device support.
| * rp: add usb device support.Dario Nieuwenhuis2022-08-253-0/+373
| |
* | Merge branch 'master' of https://github.com/embassy-rs/embassy into ↵Mathias2022-08-231-1/+1
|\| | | | | | | embassy-rp/dma
| * split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis2022-08-221-1/+1
| |
* | Fix uart rp2040 blocking exampleMathias2022-08-191-1/+1
|/
* Merge #910bors[bot]2022-08-181-3/+3
|\ | | | | | | | | | | | | | | 910: (embassy-rp): Implement remaining logic for blocking UART r=lulf a=MathiasKoch async read/write is still `todo!()`, awaiting DMA implementation. Co-authored-by: Mathias <[email protected]>
| * Fix rp uart exampleMathias2022-08-181-3/+3
| |
* | Split embassy-time from embassy-executor.Dario Nieuwenhuis2022-08-187-10/+11
| |
* | Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-176-12/+17
| |
* | Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis2022-08-171-2/+1
|/
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-297-16/+17
|
* Add embedded_hal_async support for embassy-rpDaniel Bevenius2022-07-141-0/+38
| | | | | This commit adds support for embedded-hal-async to the Embassy Raspberry PI crate.
* Merge pull request #822 from embassy-rs/remove-authorsDario Nieuwenhuis2022-06-181-1/+0
|\ | | | | Remove the authors field from Cargo.tomls
| * Remove the authors field from Cargo.tomlsDario Nieuwenhuis2022-06-181-1/+0
| | | | | | | | | | | | | | | | | | | | | | It currently contains whoever was first to write some code for the crate, even if many more people have contributed to it later. The field is "sort of" deprecated, it was made optional recently: https://rust-lang.github.io/rfcs/3052-optional-authors-field.html Due the the reasons listed there I believe removing it is better than setting it to generic fluff like "The Embassy contributors".
* | Add env DEFMT_LOG=trace to all examples.Dario Nieuwenhuis2022-06-181-0/+3
|/
* Run rustfmt.Dario Nieuwenhuis2022-06-125-22/+9
|
* Update embedded-hal-async to 0.1.0-alpha.1Dario Nieuwenhuis2022-05-291-1/+1
|
* Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis2022-04-222-8/+9
| | | | | This temporarily removes support for the async UART trait, since it's not yet in embedded-hal-async.
* Use embassy/defmt-timestamp-uptime in all examples.Dario Nieuwenhuis2022-04-027-29/+16
|
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-112-95/+287
|
* rp: impl eh1.0 blocking traitsDario Nieuwenhuis2022-02-154-5/+5
|
* rp: remove OptionalPinDario Nieuwenhuis2022-02-122-4/+2
|
* Update rust-toolchainUlf Lilleengen2021-12-165-5/+0
|
* Remove unused depsDario Nieuwenhuis2021-11-151-1/+1
|
* Adjust all examples to defmt 0.3.Bob McWhirter2021-11-151-16/+5
|
* Replace rustflags with build.rs extra-link-args.Dario Nieuwenhuis2021-11-072-11/+5
| | | | | | | | | | | | Rustflags apply to ALL the crates in the graph, while we only need them for the toplevel crate which is the only one getting linked. Rustflags are not equal for all crates, this caused cargo to re-build the same dependency crate multiple times uselessly. After this change, deps are reused more, making builds faster. Note that this only applies when sharing the target/ dir for multiple crates in the repo which is not the default.
* Update versions of critical-section and atomic-polyfillUlf Lilleengen2021-11-021-1/+1
|
* Update lots of depsDario Nieuwenhuis2021-09-111-5/+5
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-035-5/+0
| | | | trait_alias seems unused. no idea why it's there.
* Update cortex-m-rt to v0.7 for stm32, rp.Dario Nieuwenhuis2021-08-191-2/+1
|
* Update nightly, remove removed features.Dario Nieuwenhuis2021-08-045-10/+0
|