Use peripheral clock to describe the clock signal given to peripherals.

This commit is contained in:
Jonathan Pallant (42 Technology) 2021-09-27 18:42:36 +01:00
parent c531eb976e
commit 225eabb449
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ fn main() -> ! {
25, 25,
pac.PIO0, pac.PIO0,
&mut pac.RESETS, &mut pac.RESETS,
clocks.system_clock.freq(), clocks.peripheral_clock.freq(),
timer.count_down(), timer.count_down(),
); );

View file

@ -91,7 +91,7 @@ fn main() -> ! {
scl_pin, // Try `not_an_scl_pin` here scl_pin, // Try `not_an_scl_pin` here
400.kHz(), 400.kHz(),
&mut pac.RESETS, &mut pac.RESETS,
clocks.system_clock, clocks.peripheral_clock,
); );
// Write three bytes to the I²C device with 7-bit address 0x2C // Write three bytes to the I²C device with 7-bit address 0x2C