mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
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:
commit
7736076742
1 changed files with 5 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ use utralib::generated::*;
|
||||||
|
|
||||||
pub struct Output {
|
pub struct Output {
|
||||||
// This element is not used, but rather it prevents the interrupt handler from going out of scope.
|
// 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>>,
|
_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!("Mapped UART @ {:08x}", uart.as_ptr() as usize);
|
||||||
println!("Process: map success!");
|
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")))]
|
#[cfg(all(feature = "bao1x", not(feature = "hwsim"), not(feature = "gdb-stub")))]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue