Skip to content

Commit 4403f65

Browse files
committed
update clock method name in octospi
1 parent 0a8c9a3 commit 4403f65

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/xspi/octospi.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,10 +530,7 @@ macro_rules! octospi_impl {
530530
// Disable OCTOSPI before configuring it.
531531
regs.cr.write(|w| w.en().clear_bit());
532532

533-
let spi_kernel_ck = match Self::get_clock(clocks) {
534-
Some(freq_hz) => freq_hz.0,
535-
_ => panic!("OCTOSPI kernel clock not running!"),
536-
};
533+
let spi_kernel_ck = Self::kernel_clk_unwrap(clocks).0;
537534

538535
// Configure clock
539536
let hyperbus: HyperbusConfig = hyperbus.into();

0 commit comments

Comments
 (0)