tests/stm32: add lpuart test on stm32wb55

This commit is contained in:
Dario Nieuwenhuis 2022-08-20 02:52:21 +02:00
parent 872e0026ea
commit 461cce255e
2 changed files with 2 additions and 14 deletions

View File

@ -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")]

View File

@ -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")]