mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Use peripheral clock to describe the clock signal given to peripherals.
This commit is contained in:
parent
c531eb976e
commit
225eabb449
|
@ -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(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue