Function rp2040_hal::xosc::setup_xosc_blocking_custom_delay

source ·
pub fn setup_xosc_blocking_custom_delay(
    xosc_dev: XOSC,
    frequency: HertzU32,
    startup_delay_multiplier: u32
) -> Result<CrystalOscillator<Stable>, Error>
Expand description

Blocking helper method to setup the XOSC without going through all the steps.

This function allows setting a startup_delay_multiplier to tune the amount of time the chips waits for the XOSC to stabilize. The default value in the C SDK is 1, which should work on the Raspberry Pico, and many third-party boards. setup_xosc_blocking, uses a conservative value of 64, which is the value commonly used on slower-starting oscillators.