Expand description
HSE (high-speed external) clock driver for the STM32F4xx family. 1
§Usage
For the purposes of brevity, any error checking has been removed. In real applications, always check the return values of the Hse methods.
First, get a reference to the Hse struct:
ⓘ
let hse = &base_peripherals.clocks.hse;§Start the clock
ⓘ
hse.enable(stm32f429zi::rcc::HseMode::BYPASS);§Set the clock frequency
ⓘ
hse.set_frequency_mhz(8);§Stop the clock
ⓘ
hse.disable();§Check if the clock is enabled
ⓘ
if hse.is_enabled() {
/* Do something */
} else {
/* Do something */
}§Get the frequency of the clock
ⓘ
let hse_frequency_mhz = hse.get_frequency_mhz().unwrap();See 6.2.1 in the documentation. ↩
Modules§
- tests
- Tests for the HSE clock
Structs§
- Hse
- Main HSE clock structure