diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-01 08:48:54 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-01 08:48:54 +0000 |
| commit | 05968bf0f37bcb05b2ba065ef55eebd9755c6f88 (patch) | |
| tree | 307c79b65002272f34be471a8cae1b971a559ab2 /examples/nrf/src/bin | |
| parent | ea702b37190d1c6ef4296a8de37259077502406f (diff) | |
| parent | fc086fd4ba5679cae1bacb0556e503afd6e8894a (diff) | |
Merge #1037
1037: Add uart async task example r=miathedev a=miathedev
Dear Embassy Team,
here i propose an additional async uart pass-through example for the STM32WL.
Because im quite new to Rust, is there something like **interfaces**?
The code:
```
mut usart1: Uart<
'static,
embassy_stm32::peripherals::USART1,
embassy_stm32::peripherals::DMA1_CH3,
embassy_stm32::peripherals::DMA1_CH4,
>,
mut usart2: Uart<
'static,
embassy_stm32::peripherals::LPUART1,
embassy_stm32::peripherals::DMA1_CH5,
embassy_stm32::peripherals::DMA1_CH6,
>,
```
is quite ugly in my opinion. I would like to allow any Type of DMA and USART/UART as argument. Is this possible somehow?
Im open to any feedback.
With love,
Mia
Co-authored-by: miathedev <[email protected]>
Diffstat (limited to 'examples/nrf/src/bin')
0 files changed, 0 insertions, 0 deletions
