embassy/examples
bors[bot] 3047098c55
Merge #648 #656
648: Fix nRF Saadc continuous sampling r=Dirbaio a=huntc

Starting the sampling task prior to starting the SAADC peripheral can lead to unexpected buffer behaviour with multiple channels. We now provide an init callback at the point where the SAADC has started for the first time. This callback can be used to kick off sampling via PPI.

We also need to trigger the SAADC to start sampling the next buffer when the previous one is ended so that we do not drop samples - the major benefit of double buffering.

Given these additional tasks, we now simplify the API by passing in the TIMER and two PPI channels.

As a bonus, we provide an async `calibrate` method as it is recommended to use before starting up the sampling.

The example has been updated to illustrate these new features along with the simplified API.

The changes here have been tested on my nRF52840-DK.

656: stm32: Refactor DMA interrupts r=Dirbaio a=GrantM11235

Previously, every dma interrupt handler called the same `on_irq`
function which had to check the state of every dma channel.

Now, each dma interrupt handler only calls an `on_irq` method for its
corresponding channel or channels.

Co-authored-by: huntc <huntchr@gmail.com>
Co-authored-by: Grant Miller <GrantM11235@gmail.com>
2022-03-09 00:43:17 +00:00
..
boot Add embassy-boot 2022-02-09 10:50:29 +01:00
nrf Simplifies the API by taking in the TIMER and PPI channels 2022-03-07 14:51:17 +11:00
rp rp: impl eh1.0 blocking traits 2022-02-15 17:29:05 +01:00
std embassy, embassy-nrf: add nightly Cargo feature to gate nightly-only features. 2022-02-12 01:16:31 +01:00
stm32f0 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32f1 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32f3 Improve logic for processing button events 2022-02-16 21:22:35 +01:00
stm32f4 [can] Do not use wildcard reexport for bxcan 2022-03-05 09:46:06 +01:00
stm32f7 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32g0 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32g4 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32h7 stm32: Register access for timers now doesn't require self 2022-02-28 16:20:42 +01:00
stm32l0 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32l1 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32l4 Update examples 2022-03-08 17:12:50 -06:00
stm32u5 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32wb55 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
stm32wl55 stm32: add rust stable support 2022-02-12 02:45:52 +01:00
wasm embassy, embassy-nrf: add nightly Cargo feature to gate nightly-only features. 2022-02-12 01:16:31 +01:00