Fix interpolator example post migration to fugit (#434)

This commit is contained in:
Wilfried Chauveau 2022-08-26 02:32:24 +01:00 committed by GitHub
parent dbc691fb09
commit 3261eccd4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,6 @@
// The macro for our start-up function
use rp_pico::entry;
// Time handling traits
use embedded_time::rate::*;
// GPIO traits
use embedded_hal::digital::v2::OutputPin;
@ -72,7 +69,7 @@ fn main() -> ! {
// The delay object lets us wait for specified amounts of time (in
// milliseconds)
let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().integer());
let mut delay = cortex_m::delay::Delay::new(core.SYST, clocks.system_clock.freq().to_Hz());
// The single-cycle I/O block controls our GPIO pins
let mut sio = hal::Sio::new(pac.SIO);