Private Timer Functions controls private timer registers present on Cortex-A5 and A9 class devices.
References: Cortex-A5 MPCore Technical Reference Manual, Cortex-A9 MPCore Technical Reference Manual.
More...
Data Structures | |
struct | Timer_Type |
Structure type to access the Private Timer. More... | |
Macros | |
#define | PTIM ((Timer_Type *) TIMER_BASE ) |
Timer register struct. | |
Functions | |
__STATIC_INLINE void | PTIM_SetLoadValue (uint32_t value) |
Set the load value to timers LOAD register. | |
__STATIC_INLINE uint32_t | PTIM_GetLoadValue (void) |
Get the load value from timers LOAD register. | |
__STATIC_INLINE uint32_t | PTIM_GetCurrentValue (void) |
Get current counter value from timers COUNTER register. | |
__STATIC_INLINE void | PTIM_SetControl (uint32_t value) |
Configure the timer using its CONTROL register. | |
__STATIC_INLINE uint32_t | PTIM_GetControl (void) |
__STATIC_INLINE void | PTIM_ClearEventFlag (void) |
Private Timer Functions controls private timer registers present on Cortex-A5 and A9 class devices.
References: Cortex-A5 MPCore Technical Reference Manual, Cortex-A9 MPCore Technical Reference Manual.
#define PTIM ((Timer_Type *) TIMER_BASE ) |
Timer register struct.
__STATIC_INLINE void PTIM_ClearEventFlag | ( | void | ) |
ref Timer_Type::CONTROL Clears the event flag in timers ISR register.
__STATIC_INLINE uint32_t PTIM_GetControl | ( | void | ) |
ref Timer_Type::CONTROL Get the current timer configuration from its CONTROL register.
__STATIC_INLINE uint32_t PTIM_GetCurrentValue | ( | void | ) |
Get current counter value from timers COUNTER register.
__STATIC_INLINE uint32_t PTIM_GetLoadValue | ( | void | ) |
Get the load value from timers LOAD register.
__STATIC_INLINE void PTIM_SetControl | ( | uint32_t | value | ) |
Configure the timer using its CONTROL register.
[in] | value | The new configuration value to be set. |
__STATIC_INLINE void PTIM_SetLoadValue | ( | uint32_t | value | ) |
Set the load value to timers LOAD register.
[in] | value | The load value to be set. |