Timer
Description:
This function sets the timer load value for a 64-bit timer; if the timer is running then the value is
immediately loaded into the timer.
Returns:
None.
21.2.1.17 ROM_TimerMatchGet
Gets the timer match value.
Prototype:
uint32_t
ROM_TimerMatchGet(uint32_t ui32Base,
uint32_t ui32Timer)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerMatchGet is a function pointer located at ROM_TIMERTABLE[18].
Parameters:
ui32Base is the base address of the timer module.
ui32Timer specifies the timer; must be one of TIMER_A or TIMER_B. Only TIMER_A should
be used when the timer is configured for full-width operation.
Description:
This function gets the match value for the specified timer.
Note:
This function can be used for both full- and half-width modes of 16/32-bit timers, and for half-
width modes of 32/64-bit timers. Use ROM_TimerMatchGet64() for full-width modes of 32/64-
bit timers.
Returns:
Returns the match value for the timer.
21.2.1.18 ROM_TimerMatchGet64
Gets the timer match value for a 64-bit timer.
Prototype:
uint64_t
ROM_TimerMatchGet64(uint32_t ui32Base)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerMatchGet64 is a function pointer located at ROM_TIMERTABLE[27].
Parameters:
ui32Base is the base address of the timer module.
242 April 8, 2013