Files
stm32_rust/semestralka_1/src/hw_uart_pc/usart1.rs
2025-11-12 14:15:33 +01:00

13 lines
317 B
Rust

// 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
}