Skip to content

Commit

Permalink
pass a handle to udma_global to i2c init
Browse files Browse the repository at this point in the history
  • Loading branch information
bunnie committed Dec 5, 2024
1 parent 76ffbf6 commit c8e4392
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loader/src/platform/cramium/cramium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ pub fn early_init() -> u32 {
};

#[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
#[cfg(any(feature = "board-baosec", feature = "board-baosor"))]
{
Expand Down

0 comments on commit c8e4392

Please sign in to comment.