Generic Physical Timer Functions allow to control privilege level 1 physical timer registers on Generic Timer for Cortex-A7 class devices.
Reference: Cortex-A7 MPCore Technical Reference Manual.
More...
Data Structures | |
union | CNTP_CTL_Type |
Physical Timer Control register. More... | |
Functions | |
__STATIC_INLINE void | PL1_SetCounterFrequency (uint32_t value) |
Configures the frequency the timer shall run at. | |
__STATIC_INLINE void | PL1_SetLoadValue (uint32_t value) |
Sets the reset value of the timer. | |
__STATIC_INLINE uint32_t | PL1_GetCurrentValue () |
Get the current counter value. | |
__STATIC_INLINE uint64_t | PL1_GetCurrentPhysicalValue (void) |
Get the current physical counter value. | |
__STATIC_INLINE void | PL1_SetPhysicalCompareValue (uint64_t value) |
Set the physical compare value. | |
__STATIC_INLINE uint64_t | PL1_GetPhysicalCompareValue (void) |
Get the physical compare value. | |
__STATIC_INLINE void | PL1_SetControl (uint32_t value) |
Configure the timer by setting the control value. | |
__STATIC_INLINE uint32_t | PL1_GetControl () |
Get the control value. | |
Generic Physical Timer Functions allow to control privilege level 1 physical timer registers on Generic Timer for Cortex-A7 class devices.
Reference: Cortex-A7 MPCore Technical Reference Manual.
__STATIC_INLINE uint32_t PL1_GetControl | ( | void | ) |
Get the control value.
Get the timer control value.
__STATIC_INLINE uint64_t PL1_GetCurrentPhysicalValue | ( | void | ) |
Get the current physical counter value.
__STATIC_INLINE uint32_t PL1_GetCurrentValue | ( | void | ) |
Get the current counter value.
Get the current counter value.
__STATIC_INLINE uint64_t PL1_GetPhysicalCompareValue | ( | void | ) |
Get the physical compare value.
__STATIC_INLINE void PL1_SetControl | ( | uint32_t | value | ) |
Configure the timer by setting the control value.
Configure the timer by setting the control value.
[in] | value | New timer control value. |
__STATIC_INLINE void PL1_SetCounterFrequency | ( | uint32_t | value | ) |
Configures the frequency the timer shall run at.
Configures the frequency the timer shall run at.
[in] | value | The timer frequency in Hz. |
__STATIC_INLINE void PL1_SetLoadValue | ( | uint32_t | value | ) |
Sets the reset value of the timer.
Sets the reset value of the timer.
[in] | value | The value the timer is loaded with. |
__STATIC_INLINE void PL1_SetPhysicalCompareValue | ( | uint64_t | value | ) |
Set the physical compare value.
[in] | value | New physical timer compare value. |