fix debug in precursor configs

This commit is contained in:
bunnie 2024-05-05 16:31:57 +08:00
parent ad4f05bed5
commit 76c1f9cb55

View file

@ -4,6 +4,7 @@ pub struct DebugUart {}
impl DebugUart {
#[cfg(all(feature = "debug-print", any(feature = "precursor", feature = "renode")))]
pub fn putc(&mut self, c: u8) {
use utralib::generated::*;
let mut csr = CSR::new(loader::swap::SWAP_APP_UART_VADDR as *mut u32);
// Wait until TXFULL is `0`