working buffered hardware uart from previous project is now on

This commit is contained in:
Priec
2025-11-29 19:30:13 +01:00
parent 9c7f67b071
commit f7063f877d
7 changed files with 158 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
// src/uart/usart1.rs
use defmt::info;
use embassy_time::Duration;
use crate::hw_uart_pc::safety::preflight_and_suggest_yield_period;
pub fn setup_and_spawn(baudrate: u32,) -> Duration {
let yield_period: Duration = preflight_and_suggest_yield_period(baudrate);
info!("HW USART1 safe");
yield_period
}