diff --git a/boards/rp-pico/examples/pico_rtic_monotonic.rs b/boards/rp-pico/examples/pico_rtic_monotonic.rs index 4db5197..6ca64c7 100644 --- a/boards/rp-pico/examples/pico_rtic_monotonic.rs +++ b/boards/rp-pico/examples/pico_rtic_monotonic.rs @@ -21,7 +21,11 @@ mod app { #[shared] struct Shared { - led: hal::gpio::Pin, + led: hal::gpio::Pin< + hal::gpio::bank0::Gpio25, + hal::gpio::FunctionSioOutput, + hal::gpio::PullNone, + >, } #[monotonic(binds = TIMER_IRQ_0, default = true)] @@ -39,7 +43,7 @@ mod app { } let mut resets = c.device.RESETS; let mut watchdog = Watchdog::new(c.device.WATCHDOG); - let _clocks = init_clocks_and_plls( + let clocks = init_clocks_and_plls( XOSC_CRYSTAL_FREQ, c.device.XOSC, c.device.CLOCKS, @@ -58,10 +62,10 @@ mod app { sio.gpio_bank0, &mut resets, ); - let mut led = pins.led.into_push_pull_output(); + let mut led = pins.led.reconfigure(); led.set_low().unwrap(); - let mut timer = hal::Timer::new(c.device.TIMER, &mut resets); + let mut timer = hal::Timer::new(c.device.TIMER, &mut resets, &clocks); let alarm = timer.alarm_0().unwrap(); blink_led::spawn_after(500.millis()).unwrap();