From 461cce255eb35a8835437fa2238b12dcaf5acad3 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Sat, 20 Aug 2022 02:52:21 +0200 Subject: [PATCH] tests/stm32: add lpuart test on stm32wb55 --- tests/stm32/src/bin/usart.rs | 8 +------- tests/stm32/src/bin/usart_dma.rs | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/stm32/src/bin/usart.rs b/tests/stm32/src/bin/usart.rs index fb4b3fcc..7673bfe6 100644 --- a/tests/stm32/src/bin/usart.rs +++ b/tests/stm32/src/bin/usart.rs @@ -15,12 +15,6 @@ async fn main(_spawner: Spawner) { let p = embassy_stm32::init(config()); info!("Hello World!"); - #[cfg(feature = "stm32wb55rg")] - { - info!("Test SKIPPED"); - cortex_m::asm::bkpt(); - } - // Arduino pins D0 and D1 // They're connected together with a 1K resistor. #[cfg(feature = "stm32f103c8")] @@ -32,7 +26,7 @@ async fn main(_spawner: Spawner) { #[cfg(feature = "stm32f429zi")] let (tx, rx, usart) = (p.PG14, p.PG9, p.USART6); #[cfg(feature = "stm32wb55rg")] - let (tx, rx, usart) = (p.PA9, p.PA10, p.USART1); // TODO this is wrong + let (tx, rx, usart) = (p.PA2, p.PA3, p.LPUART1); #[cfg(feature = "stm32h755zi")] let (tx, rx, usart) = (p.PB6, p.PB7, p.USART1); #[cfg(feature = "stm32u585ai")] diff --git a/tests/stm32/src/bin/usart_dma.rs b/tests/stm32/src/bin/usart_dma.rs index 09382a02..e0389446 100644 --- a/tests/stm32/src/bin/usart_dma.rs +++ b/tests/stm32/src/bin/usart_dma.rs @@ -14,12 +14,6 @@ async fn main(_spawner: Spawner) { let p = embassy_stm32::init(config()); info!("Hello World!"); - #[cfg(feature = "stm32wb55rg")] - { - info!("Test SKIPPED"); - cortex_m::asm::bkpt(); - } - // Arduino pins D0 and D1 // They're connected together with a 1K resistor. #[cfg(feature = "stm32f103c8")] @@ -31,7 +25,7 @@ async fn main(_spawner: Spawner) { #[cfg(feature = "stm32f429zi")] let (tx, rx, usart, tx_dma, rx_dma) = (p.PG14, p.PG9, p.USART6, p.DMA2_CH6, p.DMA2_CH1); #[cfg(feature = "stm32wb55rg")] - let (tx, rx, usart, tx_dma, rx_dma) = (p.PA9, p.PA10, p.USART1, p.DMA1_CH1, p.DMA1_CH2); // TODO this is wrong + let (tx, rx, usart, tx_dma, rx_dma) = (p.PA2, p.PA3, p.LPUART1, p.DMA1_CH1, p.DMA1_CH2); #[cfg(feature = "stm32h755zi")] let (tx, rx, usart, tx_dma, rx_dma) = (p.PB6, p.PB7, p.USART1, p.DMA1_CH0, p.DMA1_CH1); #[cfg(feature = "stm32u585ai")]