implement timer

This commit is contained in:
2025-05-20 12:29:16 +02:00
parent aff0259643
commit 5e8180ceaf
3 changed files with 25 additions and 10 deletions

View File

@@ -23,6 +23,8 @@ pub fn print(s: &str) {
core::ptr::write_volatile(UART0_DR as *mut u32, byte as u32);
}
}
// wait till uart is not busy anymore
unsafe { while (core::ptr::read_volatile(UART0_FR as *const u32) >> 3) & 0b1 != 0 {} }
}
pub fn configure_uart() {