pub fn init_clock(
    clocks: &CLOCKS,
    xosc: &XOSC,
    pll_sys: &PLL_SYS,
    pll_usb: &PLL_USB,
    resets: &RESETS,
    watchdog: &WATCHDOG
)
Expand description

Configure the clocks.

  • The crystal oscillator frequency is assumed to be 12MHz (Raspberry Pi Pico).
  • clk_ref = 48MHz
  • clk_sys = 125MHz
  • Watchdog ticks = 1MHz