mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
Use .freq() to avoid moving clock
This commit is contained in:
parent
3a0e23c406
commit
c8b75204ee
|
@ -91,7 +91,7 @@ fn main() -> ! {
|
||||||
let mut uart = hal::uart::UartPeripheral::new(pac.UART0, uart_pins, &mut pac.RESETS)
|
let mut uart = hal::uart::UartPeripheral::new(pac.UART0, uart_pins, &mut pac.RESETS)
|
||||||
.enable(
|
.enable(
|
||||||
hal::uart::common_configs::_9600_8_N_1,
|
hal::uart::common_configs::_9600_8_N_1,
|
||||||
clocks.peripheral_clock.into(),
|
clocks.peripheral_clock.freq(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue