fix cfg gating for gdb-stub in xous-log

This commit is contained in:
Jeanie 2026-05-30 17:18:38 +09:00
parent b9d4b0578d
commit e9058268ce

View file

@ -13,6 +13,7 @@ use utralib::generated::*;
pub struct Output {
// This element is not used, but rather it prevents the interrupt handler from going out of scope.
#[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]
_uart_irq: Pin<Box<bao1x_hal::udma::UartIrq>>,
}
@ -88,7 +89,10 @@ pub fn init() -> Output {
println!("Mapped UART @ {:08x}", uart.as_ptr() as usize);
println!("Process: map success!");
Output { _uart_irq: uart_irq }
Output {
#[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]
_uart_irq: uart_irq,
}
}
#[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]