Timer
21.2.1.15 ROM_TimerLoadSet
Sets the timer load value.
Prototype:
void
ROM_TimerLoadSet(uint32_t ui32Base,
uint32_t ui32Timer,
uint32_t ui32Value)
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_TimerLoadSet is a function pointer located at ROM_TIMERTABLE[14].
Parameters:
ui32Base is the base address of the timer module.
ui32Timer specifies the timer(s) to adjust; must be one of TIMER_A, TIMER_B, or
TIMER_BOTH. Only TIMER_A should be used when the timer is configured for full-width
operation.
ui32Value is the load value.
Description:
This function sets the timer load value; if the timer is running then the value is immediately
loaded into the 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_TimerLoadSet64() for full-width modes of 32/64-bit
timers.
Returns:
None.
21.2.1.16 ROM_TimerLoadSet64
Sets the timer load value for a 64-bit timer.
Prototype:
void
ROM_TimerLoadSet64(uint32_t ui32Base,
uint64_t ui64Value)
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_TimerLoadSet64 is a function pointer located at ROM_TIMERTABLE[23].
Parameters:
ui32Base is the base address of the timer module.
ui64Value is the load value.
April 8, 2013 241