stm32/test: add C0 hil tests.

This commit is contained in:
Dario Nieuwenhuis
2023-04-11 13:37:10 +02:00
parent 35a34afbc2
commit f5df567619
9 changed files with 23 additions and 4 deletions

View File

@ -34,6 +34,8 @@ async fn main(_spawner: Spawner) {
let (tx, rx, usart, irq) = (p.PD8, p.PD9, p.USART3, interrupt::take!(USART3));
#[cfg(feature = "stm32h563zi")]
let (tx, rx, usart, irq) = (p.PB6, p.PB7, p.LPUART1, interrupt::take!(LPUART1));
#[cfg(feature = "stm32c031c6")]
let (tx, rx, usart, irq) = (p.PB6, p.PB7, p.USART1, interrupt::take!(USART1));
let config = Config::default();
let mut usart = Uart::new(usart, rx, tx, irq, NoDma, NoDma, config);