3.2.16.3 DIAG_OSC32KCTRL_FreqCalibration
Returns the status of the OSC32KCTRL_CLOCK_CALIBRATION diagnostic
This function performs the frequency test on selected oscillator. This function will measure the frequency of the oscillator with reference oscillator frequency.
Note: The DIAG_XOSC argument
is not recommended when diagnosing boards with no external
oscillator (XOSC).
DIAG_TEST_STATUS
DIAG_OSC32KCTRL_FreqCalibration
(
DIAG_CLK_SOURCE osc_periph
);
Diagnostic verifies the following faults do not exist
- OSCULP32K running at the wrong frequency
Operating Mode
- Interface can be used at POST
Precondition
- none
Parameters
- osc_periph - oscillator to test
Returns
- DIAG_TEST_PASSED if no faults were found, otherwise, DIAG_TEST_FAILED.
