Purpose
Interface for configuration the Periodic Interval Timer (PIT) peripheral.
Usage
- Initialize the PIT with the desired period using PIT_Init(). Alternatively, the Periodic Interval Value (PIV) can be configured manually using PIT_SetPIV().
- Start the PIT counting using PIT_Enable().
- Enable & disable the PIT interrupt using PIT_EnableIT() and PIT_DisableIT().
- Retrieve the current status of the PIT using PIT_GetStatus().
- To get the current value of the internal counter and the number of ticks that have occurred, use either PIT_GetPIVR() or PIT_GetPIIR() depending on whether you want the values to be cleared or not.