[][src]Function onebitsy::clocks::configure

pub fn configure(rcc: Rcc) -> Clocks

Configures the 25 MHz crystal and a 168 MHz system clock

The 1bitsy has a 25 MHz crystal wired to the MCU's high-speed external oscillator pins. We enable that, and use it to drive the full 168 MHz system clock.

Usage:

let p = stm32::Peripherals::take().unwrap();
let rcc = p.RCC.constrain();
let clocks = configure(rcc);