aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32h7rs/src
diff options
context:
space:
mode:
authorJan Špaček <[email protected]>2024-04-18 18:50:30 +0200
committerJan Špaček <[email protected]>2024-05-23 16:32:15 +0200
commit183f2f6913032600d74ea058b50a1fcedbebe719 (patch)
treed9673481a086e7efde8dd165b277d367163423fc /examples/stm32h7rs/src
parentded1f9d33520fc847dce8fe72f2fb80f6fa86350 (diff)
stm32/usart: remove instance generic params
Diffstat (limited to 'examples/stm32h7rs/src')
-rw-r--r--examples/stm32h7rs/src/bin/usart_split.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/stm32h7rs/src/bin/usart_split.rs b/examples/stm32h7rs/src/bin/usart_split.rs
index 77b4caa9e..d26c5003c 100644
--- a/examples/stm32h7rs/src/bin/usart_split.rs
+++ b/examples/stm32h7rs/src/bin/usart_split.rs
@@ -4,7 +4,6 @@
4use defmt::*; 4use defmt::*;
5use embassy_executor::Spawner; 5use embassy_executor::Spawner;
6use embassy_stm32::mode::Async; 6use embassy_stm32::mode::Async;
7use embassy_stm32::peripherals::UART7;
8use embassy_stm32::usart::{Config, Uart, UartRx}; 7use embassy_stm32::usart::{Config, Uart, UartRx};
9use embassy_stm32::{bind_interrupts, peripherals, usart}; 8use embassy_stm32::{bind_interrupts, peripherals, usart};
10use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex; 9use embassy_sync::blocking_mutex::raw::ThreadModeRawMutex;
@@ -38,7 +37,7 @@ async fn main(spawner: Spawner) -> ! {
38} 37}
39 38
40#[embassy_executor::task] 39#[embassy_executor::task]
41async fn reader(mut rx: UartRx<'static, UART7, Async>) { 40async fn reader(mut rx: UartRx<'static, Async>) {
42 let mut buf = [0; 8]; 41 let mut buf = [0; 8];
43 loop { 42 loop {
44 info!("reading..."); 43 info!("reading...");