mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
move the console to its final location
This commit is contained in:
parent
275e4c7af6
commit
857e54c5af
1 changed files with 3 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ pub fn init() -> Output {
|
||||||
// to is the DUART.
|
// to is the DUART.
|
||||||
#[cfg(feature = "cramium-soc")]
|
#[cfg(feature = "cramium-soc")]
|
||||||
let uart = xous::syscall::map_memory(
|
let uart = xous::syscall::map_memory(
|
||||||
xous::MemoryAddress::new(utra::udma_uart_1::HW_UDMA_UART_1_BASE),
|
xous::MemoryAddress::new(utra::udma_uart_2::HW_UDMA_UART_2_BASE),
|
||||||
None,
|
None,
|
||||||
4096,
|
4096,
|
||||||
xous::MemoryFlags::R | xous::MemoryFlags::W,
|
xous::MemoryFlags::R | xous::MemoryFlags::W,
|
||||||
|
|
@ -60,9 +60,9 @@ pub fn init() -> Output {
|
||||||
// safety: This is safe because uart_irq is committed into a `static mut` variable that
|
// safety: This is safe because uart_irq is committed into a `static mut` variable that
|
||||||
// ensures that its lifetime is `static`
|
// ensures that its lifetime is `static`
|
||||||
unsafe {
|
unsafe {
|
||||||
Pin::as_mut(&mut uart_irq).register_handler(udma::UartChannel::Uart1, uart_handler);
|
Pin::as_mut(&mut uart_irq).register_handler(udma::UartChannel::Uart2, uart_handler);
|
||||||
}
|
}
|
||||||
uart_irq.rx_irq_ena(udma::UartChannel::Uart1, true);
|
uart_irq.rx_irq_ena(udma::UartChannel::Uart2, true);
|
||||||
unsafe { UART_IRQ = Some(uart_irq) };
|
unsafe { UART_IRQ = Some(uart_irq) };
|
||||||
let mut udma_uart = unsafe {
|
let mut udma_uart = unsafe {
|
||||||
udma::Uart::get_handle(
|
udma::Uart::get_handle(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue