Module stm32f412g::clocks::hsi::tests
source · Expand description
Tests for the HSI clock
This module ensures that the HSI clock works as expected. If changes are brought to the HSI clock, ensure to run all the tests to see if anything is broken.
§Usage
First, import the crate::clocks::hsi module in the desired board main file:
ⓘ
use stm32f429zi::clocks::hsi;
Then, to run the tests, put the following line before kernel::process::load_processes:
ⓘ
hsi::tests::run(&peripherals.stm32f4.clocks.hsi);
If everything works as expected, the following message should be printed on the kernel console:
===============================================
Testing HSI...
Finished testing HSI. Everything is alright!
===============================================
NOTE: All these tests assume default boot configuration.
Functions§
- Run the entire test suite.