Function stm32f412g::clocks::clocks::tests::test_clocks_struct

source ·
pub fn test_clocks_struct<ChipSpecs>(clocks: &Clocks<'_, ChipSpecs>)
where ChipSpecs: ChipSpecs,
Expand description

Test for the crate::clocks::Clocks struct

§Usage

First, import the clock module:

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

Then run the test:

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