49 #define TimerConfigure NOROM_TimerConfigure
50 #undef TimerLevelControl
51 #define TimerLevelControl NOROM_TimerLevelControl
52 #undef TimerStallControl
53 #define TimerStallControl NOROM_TimerStallControl
54 #undef TimerWaitOnTriggerControl
55 #define TimerWaitOnTriggerControl NOROM_TimerWaitOnTriggerControl
56 #undef TimerIntRegister
57 #define TimerIntRegister NOROM_TimerIntRegister
58 #undef TimerIntUnregister
59 #define TimerIntUnregister NOROM_TimerIntUnregister
60 #undef TimerMatchUpdateMode
61 #define TimerMatchUpdateMode NOROM_TimerMatchUpdateMode
62 #undef TimerIntervalLoadMode
63 #define TimerIntervalLoadMode NOROM_TimerIntervalLoadMode
90 ui32Int = INT_TIMER0A;
93 ui32Int = INT_TIMER1A;
96 ui32Int = INT_TIMER2A;
99 ui32Int = INT_TIMER3A;
122 ASSERT(TimerBaseValid(ui32Base));
157 HWREG(ui32Base +
GPT_O_CFG) = ui32Config >> 24;
179 ASSERT(TimerBaseValid(ui32Base));
188 (HWREG(ui32Base +
GPT_O_CTL) | ui32Timer) :
204 ASSERT(TimerBaseValid(ui32Base));
213 (HWREG(ui32Base +
GPT_O_CTL) | ui32Timer) :
214 (HWREG(ui32Base +
GPT_O_CTL) & ~(ui32Timer)));
228 ASSERT(TimerBaseValid(ui32Base));
276 ASSERT(TimerBaseValid(ui32Base));
331 ASSERT(TimerBaseValid(ui32Base));
382 ASSERT(TimerBaseValid(ui32Base));
422 ASSERT(TimerBaseValid(ui32Base));
static uint32_t TimerIntNumberGet(uint32_t ui32Base)
Gets the timer interrupt number.
#define TIMER_CFG_SPLIT_PAIR
void TimerWaitOnTriggerControl(uint32_t ui32Base, uint32_t ui32Timer, bool bWait)
Controls the wait on trigger handling.
#define TIMER_CFG_B_ONE_SHOT
#define TIMER_CFG_A_ONE_SHOT_UP
#define TIMER_CFG_A_CAP_TIME_UP
#define TIMER_CFG_PERIODIC_UP
void TimerStallControl(uint32_t ui32Base, uint32_t ui32Timer, bool bStall)
Controls the stall handling.
void TimerMatchUpdateMode(uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Mode)
Sets the Match Register Update mode.
#define TIMER_CFG_ONE_SHOT
#define TIMER_MATCHUPDATE_TIMEOUT
#define TIMER_CFG_A_CAP_COUNT_UP
void TimerIntRegister(uint32_t ui32Base, uint32_t ui32Timer, void(*pfnHandler)(void))
Registers an interrupt handler for the timer interrupt.
#define TIMER_CFG_B_ONE_SHOT_UP
#define TIMER_CFG_B_CAP_TIME
void TimerConfigure(uint32_t ui32Base, uint32_t ui32Config)
Configures the timer(s)
#define TIMER_CFG_ONE_SHOT_UP
#define TIMER_CFG_A_PERIODIC
#define TIMER_CFG_B_CAP_TIME_UP
void TimerIntUnregister(uint32_t ui32Base, uint32_t ui32Timer)
Unregisters an interrupt handler for the timer interrupt.
void TimerLevelControl(uint32_t ui32Base, uint32_t ui32Timer, bool bInvert)
Controls the output level.
#define TIMER_CFG_B_PERIODIC
void TimerIntervalLoadMode(uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Mode)
Sets the Interval Load mode.
#define TIMER_CFG_B_CAP_COUNT
#define TIMER_CFG_B_CAP_COUNT_UP
void IntUnregister(uint32_t ui32Interrupt)
Unregisters the function to be called when an interrupt occurs.
#define TIMER_INTERVALLOAD_TIMEOUT
#define TIMER_CFG_PERIODIC
#define TIMER_CFG_A_ONE_SHOT
#define TIMER_CFG_A_CAP_COUNT
#define TIMER_CFG_A_CAP_TIME
#define TIMER_INTERVALLOAD_NEXTCYCLE
#define TIMER_CFG_A_PERIODIC_UP
#define TIMER_MATCHUPDATE_NEXTCYCLE
void IntDisable(uint32_t ui32Interrupt)
Disables an interrupt.
void IntRegister(uint32_t ui32Interrupt, void(*pfnHandler)(void))
Registers a function to be called when an interrupt occurs.
void IntEnable(uint32_t ui32Interrupt)
Enables an interrupt.
#define TIMER_CFG_B_PERIODIC_UP