3.2.17.4 DIAG_OSCCTRL_FreqCalibration
Returns the status of the OSCCTRL_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_OSCCTRL_FreqCalibration
(
DIAG_CLK_SOURCE osc_periph
);
Diagnostic verifies the following faults do not exist
- OSC 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.
