mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
update udma_global api in bootloader swap
This commit is contained in:
parent
843d928126
commit
18c4413ae9
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ pub struct SwapHal {
|
|||
impl SwapHal {
|
||||
pub fn new(cfg: &BootConfig) -> Option<SwapHal> {
|
||||
if let Some(swap) = cfg.swap {
|
||||
let mut udma_global = GlobalConfig::new(utralib::generated::HW_UDMA_CTRL_BASE as *mut u32);
|
||||
let udma_global = GlobalConfig::new(utralib::generated::HW_UDMA_CTRL_BASE as *mut u32);
|
||||
|
||||
// setup the I/O pins
|
||||
let iox = Iox::new(utralib::generated::HW_IOX_BASE as *mut u32);
|
||||
|
|
@ -392,7 +392,7 @@ pub fn userspace_maps(cfg: &mut BootConfig) {
|
|||
iox.set_gpio_dir(IoxPort::PD, 3, IoxDir::Output);
|
||||
|
||||
// Set up the UDMA_UART block to the correct baud rate and enable status
|
||||
let mut udma_global =
|
||||
let udma_global =
|
||||
cramium_hal::udma::GlobalConfig::new(utralib::utra::udma_ctrl::HW_UDMA_CTRL_BASE as *mut u32);
|
||||
udma_global.clock_on(cramium_hal::udma::PeriphId::Uart0);
|
||||
udma_global.map_event(
|
||||
|
|
|
|||
Loading…
Reference in a new issue