Timer
Prototype:
void
ROM_TimerRTCEnable(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_TimerRTCEnable is a function pointer located at ROM_TIMERTABLE[8].
Parameters:
ui32Base is the base address of the timer module.
Description:
This function causes the timer to start counting when in RTC mode. If not configured for RTC
mode, this will do nothing.
Returns:
None.
21.2.1.27 ROM_TimerValueGet
Gets the current timer value.
Prototype:
uint32_t
ROM_TimerValueGet(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_TimerValueGet is a function pointer located at ROM_TIMERTABLE[16].
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 reads the current value of 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_TimerValueGet64() for full-width modes of 32/64-bit
timers.
Returns:
Returns the current value of the timer.
April 8, 2013 247