Merge pull request #894 from rowr111/fix-bao1x-gdb-stub-compile

fix cfg gating for gdb-stub in xous-log
This commit is contained in:
bunnie 2026-05-30 16:38:59 +08:00 committed by GitHub
commit 7736076742
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")))]