mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
make the app uart configurable
so processes other than swap can use it
This commit is contained in:
parent
d1835f8e4b
commit
b66b60497b
1 changed files with 21 additions and 18 deletions
|
|
@ -429,22 +429,25 @@ pub fn userspace_maps(cfg: &mut BootConfig) {
|
||||||
|
|
||||||
udma_uart.write(b"APP UART INIT OK\n\r");
|
udma_uart.write(b"APP UART INIT OK\n\r");
|
||||||
|
|
||||||
// map the debug UART HW page
|
#[cfg(feature = "userspace-swap-debug")]
|
||||||
cfg.map_page_32(
|
{
|
||||||
root,
|
// map the debug UART HW page
|
||||||
// TODO: use PD2/3 AF2 for this UART; set up the IOs for this
|
cfg.map_page_32(
|
||||||
utralib::utra::udma_uart_0::HW_UDMA_UART_0_BASE,
|
root,
|
||||||
SWAP_APP_UART_VADDR,
|
// TODO: use PD2/3 AF2 for this UART; set up the IOs for this
|
||||||
FLG_R | FLG_W | FLG_U | FLG_VALID,
|
utralib::utra::udma_uart_0::HW_UDMA_UART_0_BASE,
|
||||||
SWAPPER_PID,
|
SWAP_APP_UART_VADDR,
|
||||||
);
|
FLG_R | FLG_W | FLG_U | FLG_VALID,
|
||||||
// map the debug UART IFRAM page
|
SWAPPER_PID,
|
||||||
cfg.map_page_32(
|
);
|
||||||
root,
|
// map the debug UART IFRAM page
|
||||||
// TODO: use PD2/3 AF2 for this UART; set up the IOs for this
|
cfg.map_page_32(
|
||||||
APP_UART_IFRAM_ADDR,
|
root,
|
||||||
SWAP_APP_UART_IFRAM_VADDR,
|
// TODO: use PD2/3 AF2 for this UART; set up the IOs for this
|
||||||
FLG_R | FLG_W | FLG_U | FLG_VALID,
|
APP_UART_IFRAM_ADDR,
|
||||||
SWAPPER_PID,
|
SWAP_APP_UART_IFRAM_VADDR,
|
||||||
);
|
FLG_R | FLG_W | FLG_U | FLG_VALID,
|
||||||
|
SWAPPER_PID,
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue