diff --git a/rp2040-hal/examples/rtc_irq_example.rs b/rp2040-hal/examples/rtc_irq_example.rs index 8680e2075..1a6f17fda 100644 --- a/rp2040-hal/examples/rtc_irq_example.rs +++ b/rp2040-hal/examples/rtc_irq_example.rs @@ -106,7 +106,7 @@ fn main() -> ! { // day and time (it may not have been a Monday but it doesn't matter for this example). let mut rtc = hal::rtc::RealTimeClock::new( pac.RTC, - clocks.rtc_clock, + &clocks.rtc_clock, &mut pac.RESETS, rtc::DateTime { year: 0, diff --git a/rp2040-hal/examples/rtc_sleep_example.rs b/rp2040-hal/examples/rtc_sleep_example.rs index 18b8f07c1..10a7c9f74 100644 --- a/rp2040-hal/examples/rtc_sleep_example.rs +++ b/rp2040-hal/examples/rtc_sleep_example.rs @@ -104,7 +104,7 @@ fn main() -> ! { // day and time (it may not have been a Monday but it doesn't matter for this example.). let mut rtc = hal::rtc::RealTimeClock::new( pac.RTC, - clocks.rtc_clock, + &clocks.rtc_clock, &mut pac.RESETS, rtc::DateTime { year: 0,