summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2022-09-20Remove BootFlash borrowUlf Lilleengen
Compiler will infer a different lifetime for BootFlash than for the borrowed flash, which makes it require more type annotations than if it was just owning the type. Since it doesn't really matter if it owns or borrows in practical use, change it to own so that it simplifies usage.
2022-09-16Feature-gate time-driver in embassy-rpMathias
2022-09-04Merge #939bors[bot]
939: time: add more tick rates, use 1mhz as default. r=Dirbaio a=Dirbaio Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>
2022-09-04usbd-hid: 0.5.2 -> 0.6.0Alex Martens
2022-09-04Merge #839bors[bot]
839: Misc LoRaWAN improvements r=lulf a=timokroeger Trying too get `embassy-lora` running on a [LoRa-E5 Dev Board](https://wiki.seeedstudio.com/LoRa_E5_Dev_Board/). I can see the join message arriving in the The Things Network console but the device does not receive the accept message yet. Opening this PR anyway because I think there are some nice things to decouple the lora crate from the nucleo board. `@lulf` Could you test if this PR breaks your LoRa setup? Marking as draft for the time being. Co-authored-by: Timo Kröger <timokroeger93@gmail.com> Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-09-02Merge #935bors[bot]
935: Remove generic const expressions from embassy-boot r=lulf a=lulf * Remove the need for generic const expressions and use buffers provided in the flash config. * Extend embedded-storage traits to simplify generics. * Document all public APIs * Add toplevel README * Expose AlignedBuffer type for convenience. * Update examples Co-authored-by: Ulf Lilleengen <lulf@redhat.com>
2022-09-02Remove generic const expressions from embassy-bootUlf Lilleengen
* Remove the need for generic const expressions and use buffers provided in the flash config. * Extend embedded-storage traits to simplify generics. * Document all public APIs * Add toplevel README * Expose AlignedBuffer type for convenience. * Update examples
2022-09-02time: add more tick rates, use 1mhz as default.Dario Nieuwenhuis
2022-09-01Cleanup examplesHenrik Alsér
2022-09-01Reorder argsHenrik Alsér
2022-09-01transfer_in_placeHenrik Alsér
2022-09-01Fix exampleHenrik Alsér
2022-09-01impl embedded-hal-asyncHenrik Alsér
2022-09-01exampleHenrik Alsér
2022-08-30net: feature-gate nightly-only async traits to allow building on stable.Dario Nieuwenhuis
2022-08-30Merge pull request #927 from embassy-rs/rp-usbDario Nieuwenhuis
rp: add usb device support.
2022-08-29futures: move select* and join* to separate modules.Dario Nieuwenhuis
2022-08-26lora: Fix for stm32l0 exampe to buildTimo Kröger
2022-08-26Use released rust-lorawan with radio fixesUlf Lilleengen
2022-08-26Use LP as defaultUlf Lilleengen
2022-08-26lora: Make some options configurableTimo Kröger
Call `config()` only once at construction not with every RX and TX operation. The Lora-E5 only supports HP mode, use that instead. The nucleo board supports both HP and LP and should continue to work.
2022-08-26lora: Use a trait for RF frontend switchingTimo Kröger
The Seeed Studio Lora-E5 module only has two control pins. With the `RadioSwitch` trait the user can implement any method required by the module/board to control the TX/RX direction of the radio frontend.
2022-08-26lora: Improve IRQ handlingTimo Kröger
* Interrupt handler only triggers a waker: Do the actual interrupt processing which involves SUBGHZ SPI coms in the task. * Do not require a static state for the constructor. * Remove unsafe from construcor.
2022-08-26stm32wl: Do not require external SPI pins for SUBGHZTimo Kröger
For the Seeed Studio Lora-E5 those pins conflict with the radio frontend control GPIOS (PA4 and PA5).
2022-08-26Merge #913bors[bot]
913: (embassy-rp): Add DMA implementation r=Dirbaio a=MathiasKoch This PR adds everything necessary to do peripheral to memory DMA & memory to memory DMA operations. It also adds async UART read & write, powered by DMA Co-authored-by: Mathias <mk@blackbird.online>
2022-08-25rp: add usb device support.Dario Nieuwenhuis
2022-08-23Enable 'std' feature on critical-section for WASMUlf Lilleengen
This fixes the WASM support which was failing due to missing critical-section implementation. This also upgrades the bindgen dependency and ensures that tooling works.
2022-08-23Merge branch 'master' of https://github.com/embassy-rs/embassy into ↵Mathias
embassy-rp/dma
2022-08-22sync: flatten module structure.Dario Nieuwenhuis
2022-08-22split `embassy-util` into `embassy-futures`, `embassy-sync`.Dario Nieuwenhuis
2022-08-22Remove Forever, switch to static_cell.Dario Nieuwenhuis
2022-08-20Switch to crates.io version of systemview-targetQuentin Smith
2022-08-19Fetch systemview-target from upstream gitQuentin Smith
2022-08-19Fix uart rp2040 blocking exampleMathias
2022-08-19Fix package name for the new nrf-rtos-trace exampleQuentin Smith
2022-08-19Merge branch 'master' of https://github.com/embassy-rs/embassy into rtos-traceQuentin Smith
2022-08-18Merge #910bors[bot]
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 <mk@blackbird.online>
2022-08-18Fix rp uart exampleMathias
2022-08-18Move rtos-trace example to a separate project to simplify Cargo.tomlQuentin Smith
2022-08-18Split embassy-time from embassy-executor.Dario Nieuwenhuis
2022-08-17examples Remove the `fn config()` idiom.Dario Nieuwenhuis
It was only useful for doing #[embassy_executor::main(config = "config()")]`. Now that it's gone, it makes more sense to build the config in main directly.
2022-08-17Remove HAL initialization from #[embassy::main] macro.Dario Nieuwenhuis
2022-08-17Update to critical-section 1.0, atomic-polyfill 1.0Dario Nieuwenhuis
2022-08-16Run cargo fmtQuentin Smith
2022-08-16Allow rtos_trace example to be used without logQuentin Smith
2022-08-16Add example of rtos-trace / SystemViewQuentin Smith
2022-08-10Add UDP example appArtur Kowalski
2022-08-10Merge #896bors[bot]
896: Implement I2C pullup configuration r=lulf a=chemicstry I wasn't sure if I should put frequency into config struct, so left it separate as in SPI periph. Also added Copy derives to gpio types, not sure why they weren't? Co-authored-by: chemicstry <chemicstry@gmail.com>
2022-08-09Implement I2C pullup configurationchemicstry
2022-08-09Add example using embedded-nal-async traitsUlf Lilleengen