mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
doc: fix clocks extended usage xosc order
This commit is contained in:
parent
f8bf06cb7f
commit
fea35b48bb
|
@ -22,13 +22,14 @@
|
||||||
//! let mut watchdog = Watchdog::new(peripherals.WATCHDOG);
|
//! let mut watchdog = Watchdog::new(peripherals.WATCHDOG);
|
||||||
//! const XOSC_CRYSTAL_FREQ: u32 = 12_000_000; // Typically found in BSP crates
|
//! const XOSC_CRYSTAL_FREQ: u32 = 12_000_000; // Typically found in BSP crates
|
||||||
//!
|
//!
|
||||||
//! // Start tick in watchdog
|
|
||||||
//! watchdog.enable_tick_generation(XOSC_CRYSTAL_FREQ as u8);
|
|
||||||
//!
|
|
||||||
//! let mut clocks = ClocksManager::new(peripherals.CLOCKS);
|
|
||||||
//! // Enable the xosc
|
//! // Enable the xosc
|
||||||
//! let xosc = setup_xosc_blocking(peripherals.XOSC, XOSC_CRYSTAL_FREQ.Hz()).map_err(InitError::XoscErr)?;
|
//! let xosc = setup_xosc_blocking(peripherals.XOSC, XOSC_CRYSTAL_FREQ.Hz()).map_err(InitError::XoscErr)?;
|
||||||
//!
|
//!
|
||||||
|
//! // Start tick in watchdog
|
||||||
|
//! watchdog.enable_tick_generation((XOSC_CRYSTAL_FREQ / 1_000_000) as u8);
|
||||||
|
//!
|
||||||
|
//! let mut clocks = ClocksManager::new(peripherals.CLOCKS);
|
||||||
|
//!
|
||||||
//! // Configure PLLs
|
//! // Configure PLLs
|
||||||
//! // REF FBDIV VCO POSTDIV
|
//! // REF FBDIV VCO POSTDIV
|
||||||
//! // PLL SYS: 12 / 1 = 12MHz * 125 = 1500MHZ / 6 / 2 = 125MHz
|
//! // PLL SYS: 12 / 1 = 12MHz * 125 = 1500MHZ / 6 / 2 = 125MHz
|
||||||
|
|
Loading…
Reference in a new issue