Features Supported
- APIs to setup timer configuration
- APIs to start and stop the timer
- APIs to get the current timer count
- APIs to check for counter overflow and clear timer overflow interrupt
Features NOT Supported
NA
Important Usage Guidelines
- Support configuration for RTI timer
- Value for 'inputPreScaler' should be set to 1
- RTI timer does not have a clock prescaler. However, RTI supports two 32 bit counters (UC and FRC) per block, out of which UC can be used as a prescaler to run FRC.
- RTI based TimerP driver makes use of both UC and FRC to achieve the required tick period and generate interrupt. So in this design RTICLK cannot be prescaled. RTI TimerP driver assumes prescaler is 1 and the value provided in 'inputPreScaler' is not used.
- Supports continues and oneshot mode
- When configuring the timer period in micro second the 'periodInNsec' should be set to 0
Example Usage
Include the below file to access the APIs,
Example usage to initialize the timer
Example usage to start the timer
Example usage to get the current count value
uint32_t count;
(void) count;
Example usage to stop the timer
API
APIs for timer setup and control