mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 12:41:31 +11:00
Fix interpolator example post migration to fugit (#434)
This commit is contained in:
parent
dbc691fb09
commit
3261eccd4d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue