3.1.2 Prerequisites and Preconditions
This section lists the prerequisites for using the Diagnostic library functions.
Safe-PLIB
- Safe-PLIB - The diagnostic library is dependant on a PLIB library. The Integrator has a choice of using the standard Harmony 3 standard or the Harmony 3 Safe-PLIB library. The Safe PLIB library is not part of the diagnostic.
Note: The Diagnostic library was only tested with the
Safe-PLIB library.
Run-time
- Running - In order to run any function, the following must be executed:
DIAG_SetPOSTComplete(false);
NVMCTRL_REGS->NVMCTRL_CTRLB = NVMCTRL_CTRLB_RWS(3);
NVIC_Initialize();
DIAG_OSCCTRL_Initialize(48000000, 5.0); //Function to Initialize the Main Oscillator
Note: See: individual module topics. Some modules will require
specific setup.
