mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-19 09:00:54 +00:00
pass a handle to udma_global to i2c init
This commit is contained in:
parent
76ffbf6e27
commit
c8e4392a95
1 changed files with 3 additions and 1 deletions
|
|
@ -300,7 +300,9 @@ pub fn early_init() -> u32 {
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
||||||
let mut i2c = unsafe { cramium_hal::udma::I2c::new_with_ifram(i2c_channel, 400_000, perclk, i2c_ifram) };
|
let mut i2c = unsafe {
|
||||||
|
cramium_hal::udma::I2c::new_with_ifram(i2c_channel, 400_000, perclk, i2c_ifram, &udma_global)
|
||||||
|
};
|
||||||
// setup PMIC
|
// setup PMIC
|
||||||
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue