aboutsummaryrefslogtreecommitdiff
path: root/examples/rp/src
Commit message (Collapse)AuthorAgeFilesLines
...
* embassy-rp: Add split() to BufferedUartkalkyl2022-12-221-0/+57
|
* cargo fmtAaron Tsui2022-12-201-2/+2
|
* add convert_to_celsius function in the adc moduleAaron Tsui2022-12-201-1/+6
| | | | | | modify RP2040 adc example to get inside biased bipolar diode voltage, then convert this temperature sensor data into Celsius degree, according to chapter 4.9.5. Temperature Sensor in RP2040 datasheet.
* usb/cdc-ncm: add embassy-net Device implementation.Dario Nieuwenhuis2022-12-131-123/+17
|
* Merge branch 'master' into multicoreHenrik Alsér2022-12-132-0/+181
|\
| * Added RelocateProgram class for adjusting PIO-programs for different origins.Simon Berg2022-12-092-16/+25
| |
| * PIO support for RPi PicoSimon Berg2022-12-092-0/+172
| |
* | Refactor after reviewkalkyl2022-12-131-3/+2
| |
* | Cleanupkalkyl2022-12-101-4/+3
| |
* | fmtkalkyl2022-12-101-2/+2
| |
* | embassy-rp: Add multicore supportkalkyl2022-12-101-0/+62
|/
* Merge #1059bors[bot]2022-11-221-0/+33
|\ | | | | | | | | | | | | | | 1059: embassy-rp: Add basic ADC module r=kalkyl a=kalkyl Oneshot ADC Co-authored-by: Henrik Alsér <[email protected]>
| * embassy-rp: Add basic ADC moduleHenrik Alsér2022-11-151-0/+33
| |
* | feat: embassy-usb-logger and example for rpi picoUlf Lilleengen2022-11-181-0/+30
|/ | | | | | * Add embassy-usb-logger which allows logging over USB for any device implementing embassy-usb * Add example using logger for rpi pico.
* Remove random delay from example, and move flash functions to allow using ↵Mathias2022-10-271-1/+7
| | | | without embedded-storage in scope
* Buffer data to be written to flash in ram if it does not already reside in ramMathias2022-10-261-1/+0
|
* Add flash example & flash HIL testMathias2022-10-261-0/+84
|
* Merge #984 #1006bors[bot]2022-10-121-0/+102
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | update embedded-hal apiJeremy Fitzhardinge2022-10-011-1/+1
| | | | | | | | 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-262-2/+2
|
* Replace futures::future::join -> embassy_futures::join::join.Dario Nieuwenhuis2022-09-221-1/+1
|
* Update Rust nightly.Dario Nieuwenhuis2022-09-222-2/+0
| | | | Removes feature(generic_associated_types)
* 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-301-1/+1
|
* Merge pull request #927 from embassy-rs/rp-usbDario Nieuwenhuis2022-08-302-0/+367
|\ | | | | rp: add usb device support.
| * rp: add usb device support.Dario Nieuwenhuis2022-08-252-0/+367
| |
* | 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-186-9/+9
| |
* | Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis2022-08-176-12/+17
|/
* Split embassy crate into embassy-executor, embassy-util.Dario Nieuwenhuis2022-07-296-15/+15
|
* 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.
* Run rustfmt.Dario Nieuwenhuis2022-06-125-22/+9
|
* Switch to crates.io embedded-hal, embedded-hal-async.Dario Nieuwenhuis2022-04-221-6/+6
| | | | | 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-026-28/+15
|
* Update rust nightly, embedded-hal 1.0, embedded-hal-async.Dario Nieuwenhuis2022-03-111-93/+282
|
* rp: impl eh1.0 blocking traitsDario Nieuwenhuis2022-02-152-3/+3
|
* rp: remove OptionalPinDario Nieuwenhuis2022-02-122-4/+2
|
* Update rust-toolchainUlf Lilleengen2021-12-165-5/+0
|
* Remove trait_alias, allow(incomplete_features).Dario Nieuwenhuis2021-09-035-5/+0
| | | | trait_alias seems unused. no idea why it's there.