Function test_prescalers

Source
pub fn test_prescalers<ChipSpecs>(clocks: &Clocks<'_, ChipSpecs>)
where ChipSpecs: ChipSpecs,
Expand description

Test for the AHB and APB prescalers

§Usage

First, import the clock module:

// This test assumes a STM32F429 chip
use stm32f429zi::clocks;

Then run the test:

clocks::test::test_prescalers(&peripherals.stm32f4.clocks);