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