EE445M RTOS
Taken at the University of Texas Spring 2015
timer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TIMER_CFG_ONE_SHOT   0x00000021
 
#define TIMER_CFG_ONE_SHOT_UP   0x00000031
 
#define TIMER_CFG_PERIODIC   0x00000022
 
#define TIMER_CFG_PERIODIC_UP   0x00000032
 
#define TIMER_CFG_RTC   0x01000000
 
#define TIMER_CFG_SPLIT_PAIR   0x04000000
 
#define TIMER_CFG_A_ONE_SHOT   0x00000021
 
#define TIMER_CFG_A_ONE_SHOT_UP   0x00000031
 
#define TIMER_CFG_A_PERIODIC   0x00000022
 
#define TIMER_CFG_A_PERIODIC_UP   0x00000032
 
#define TIMER_CFG_A_CAP_COUNT   0x00000003
 
#define TIMER_CFG_A_CAP_COUNT_UP   0x00000013
 
#define TIMER_CFG_A_CAP_TIME   0x00000007
 
#define TIMER_CFG_A_CAP_TIME_UP   0x00000017
 
#define TIMER_CFG_A_PWM   0x0000000A
 
#define TIMER_CFG_B_ONE_SHOT   0x00002100
 
#define TIMER_CFG_B_ONE_SHOT_UP   0x00003100
 
#define TIMER_CFG_B_PERIODIC   0x00002200
 
#define TIMER_CFG_B_PERIODIC_UP   0x00003200
 
#define TIMER_CFG_B_CAP_COUNT   0x00000300
 
#define TIMER_CFG_B_CAP_COUNT_UP   0x00001300
 
#define TIMER_CFG_B_CAP_TIME   0x00000700
 
#define TIMER_CFG_B_CAP_TIME_UP   0x00001700
 
#define TIMER_CFG_B_PWM   0x00000A00
 
#define TIMER_CFG_A_ACT_TOINTD   0x00010000
 
#define TIMER_CFG_A_ACT_NONE   0x00000000
 
#define TIMER_CFG_A_ACT_TOGGLE   0x00020000
 
#define TIMER_CFG_A_ACT_CLRTO   0x00040000
 
#define TIMER_CFG_A_ACT_SETTO   0x00060000
 
#define TIMER_CFG_A_ACT_SETTOGTO   0x00080000
 
#define TIMER_CFG_A_ACT_CLRTOGTO   0x000A0000
 
#define TIMER_CFG_A_ACT_SETCLRTO   0x000C0000
 
#define TIMER_CFG_A_ACT_CLRSETTO   0x000E0000
 
#define TIMER_CFG_B_ACT_TOINTD   0x00100000
 
#define TIMER_CFG_B_ACT_NONE   0x00000000
 
#define TIMER_CFG_B_ACT_TOGGLE   0x00200000
 
#define TIMER_CFG_B_ACT_CLRTO   0x00400000
 
#define TIMER_CFG_B_ACT_SETTO   0x00600000
 
#define TIMER_CFG_B_ACT_SETTOGTO   0x00800000
 
#define TIMER_CFG_B_ACT_CLRTOGTO   0x00A00000
 
#define TIMER_CFG_B_ACT_SETCLRTO   0x00C00000
 
#define TIMER_CFG_B_ACT_CLRSETTO   0x0000E000
 
#define TIMER_TIMB_DMA   0x00002000
 
#define TIMER_TIMB_MATCH   0x00000800
 
#define TIMER_CAPB_EVENT   0x00000400
 
#define TIMER_CAPB_MATCH   0x00000200
 
#define TIMER_TIMB_TIMEOUT   0x00000100
 
#define TIMER_TIMA_DMA   0x00000020
 
#define TIMER_TIMA_MATCH   0x00000010
 
#define TIMER_RTC_MATCH   0x00000008
 
#define TIMER_CAPA_EVENT   0x00000004
 
#define TIMER_CAPA_MATCH   0x00000002
 
#define TIMER_TIMA_TIMEOUT   0x00000001
 
#define TIMER_EVENT_POS_EDGE   0x00000000
 
#define TIMER_EVENT_NEG_EDGE   0x00000404
 
#define TIMER_EVENT_BOTH_EDGES   0x00000C0C
 
#define TIMER_A   0x000000ff
 
#define TIMER_B   0x0000ff00
 
#define TIMER_BOTH   0x0000ffff
 
#define TIMER_0A_SYNC   0x00000001
 
#define TIMER_0B_SYNC   0x00000002
 
#define TIMER_1A_SYNC   0x00000004
 
#define TIMER_1B_SYNC   0x00000008
 
#define TIMER_2A_SYNC   0x00000010
 
#define TIMER_2B_SYNC   0x00000020
 
#define TIMER_3A_SYNC   0x00000040
 
#define TIMER_3B_SYNC   0x00000080
 
#define TIMER_4A_SYNC   0x00000100
 
#define TIMER_4B_SYNC   0x00000200
 
#define TIMER_5A_SYNC   0x00000400
 
#define TIMER_5B_SYNC   0x00000800
 
#define WTIMER_0A_SYNC   0x00001000
 
#define WTIMER_0B_SYNC   0x00002000
 
#define WTIMER_1A_SYNC   0x00004000
 
#define WTIMER_1B_SYNC   0x00008000
 
#define WTIMER_2A_SYNC   0x00010000
 
#define WTIMER_2B_SYNC   0x00020000
 
#define WTIMER_3A_SYNC   0x00040000
 
#define WTIMER_3B_SYNC   0x00080000
 
#define WTIMER_4A_SYNC   0x00100000
 
#define WTIMER_4B_SYNC   0x00200000
 
#define WTIMER_5A_SYNC   0x00400000
 
#define WTIMER_5B_SYNC   0x00800000
 
#define TIMER_CLOCK_SYSTEM   0x00000000
 
#define TIMER_CLOCK_PIOSC   0x00000001
 
#define TIMER_DMA_MODEMATCH_B   0x00000800
 
#define TIMER_DMA_CAPEVENT_B   0x00000400
 
#define TIMER_DMA_CAPMATCH_B   0x00000200
 
#define TIMER_DMA_TIMEOUT_B   0x00000100
 
#define TIMER_DMA_MODEMATCH_A   0x00000010
 
#define TIMER_DMA_RTC_A   0x00000008
 
#define TIMER_DMA_CAPEVENT_A   0x00000004
 
#define TIMER_DMA_CAPMATCH_A   0x00000002
 
#define TIMER_DMA_TIMEOUT_A   0x00000001
 
#define TIMER_ADC_MODEMATCH_B   0x00000800
 
#define TIMER_ADC_CAPEVENT_B   0x00000400
 
#define TIMER_ADC_CAPMATCH_B   0x00000200
 
#define TIMER_ADC_TIMEOUT_B   0x00000100
 
#define TIMER_ADC_MODEMATCH_A   0x00000010
 
#define TIMER_ADC_RTC_A   0x00000008
 
#define TIMER_ADC_CAPEVENT_A   0x00000004
 
#define TIMER_ADC_CAPMATCH_A   0x00000002
 
#define TIMER_ADC_TIMEOUT_A   0x00000001
 
#define TIMER_UP_LOAD_IMMEDIATE   0x00000000
 
#define TIMER_UP_LOAD_TIMEOUT   0x00000100
 
#define TIMER_UP_MATCH_IMMEDIATE   0x00000000
 
#define TIMER_UP_MATCH_TIMEOUT   0x00000400
 

Functions

void TimerEnable (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerDisable (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerConfigure (uint32_t ui32Base, uint32_t ui32Config)
 
void TimerControlLevel (uint32_t ui32Base, uint32_t ui32Timer, bool bInvert)
 
void TimerControlTrigger (uint32_t ui32Base, uint32_t ui32Timer, bool bEnable)
 
void TimerControlEvent (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Event)
 
void TimerControlStall (uint32_t ui32Base, uint32_t ui32Timer, bool bStall)
 
void TimerControlWaitOnTrigger (uint32_t ui32Base, uint32_t ui32Timer, bool bWait)
 
void TimerRTCEnable (uint32_t ui32Base)
 
void TimerRTCDisable (uint32_t ui32Base)
 
void TimerPrescaleSet (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Value)
 
uint32_t TimerPrescaleGet (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerPrescaleMatchSet (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Value)
 
uint32_t TimerPrescaleMatchGet (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerLoadSet (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Value)
 
uint32_t TimerLoadGet (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerLoadSet64 (uint32_t ui32Base, uint64_t ui64Value)
 
uint64_t TimerLoadGet64 (uint32_t ui32Base)
 
uint32_t TimerValueGet (uint32_t ui32Base, uint32_t ui32Timer)
 
uint64_t TimerValueGet64 (uint32_t ui32Base)
 
void TimerMatchSet (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Value)
 
uint32_t TimerMatchGet (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerMatchSet64 (uint32_t ui32Base, uint64_t ui64Value)
 
uint64_t TimerMatchGet64 (uint32_t ui32Base)
 
void TimerIntRegister (uint32_t ui32Base, uint32_t ui32Timer, void(*pfnHandler)(void))
 
void TimerIntUnregister (uint32_t ui32Base, uint32_t ui32Timer)
 
void TimerIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void TimerIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t TimerIntStatus (uint32_t ui32Base, bool bMasked)
 
void TimerIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void TimerSynchronize (uint32_t ui32Base, uint32_t ui32Timers)
 
uint32_t TimerClockSourceGet (uint32_t ui32Base)
 
void TimerClockSourceSet (uint32_t ui32Base, uint32_t ui32Source)
 
uint32_t TimerADCEventGet (uint32_t ui32Base)
 
void TimerADCEventSet (uint32_t ui32Base, uint32_t ui32ADCEvent)
 
uint32_t TimerDMAEventGet (uint32_t ui32Base)
 
void TimerDMAEventSet (uint32_t ui32Base, uint32_t ui32DMAEvent)
 
void TimerUpdateMode (uint32_t ui32Base, uint32_t ui32Timer, uint32_t ui32Config)
 

Macro Definition Documentation

#define TIMER_0A_SYNC   0x00000001

Definition at line 161 of file timer.h.

#define TIMER_0B_SYNC   0x00000002

Definition at line 162 of file timer.h.

#define TIMER_1A_SYNC   0x00000004

Definition at line 163 of file timer.h.

#define TIMER_1B_SYNC   0x00000008

Definition at line 164 of file timer.h.

#define TIMER_2A_SYNC   0x00000010

Definition at line 165 of file timer.h.

#define TIMER_2B_SYNC   0x00000020

Definition at line 166 of file timer.h.

#define TIMER_3A_SYNC   0x00000040

Definition at line 167 of file timer.h.

#define TIMER_3B_SYNC   0x00000080

Definition at line 168 of file timer.h.

#define TIMER_4A_SYNC   0x00000100

Definition at line 169 of file timer.h.

#define TIMER_4B_SYNC   0x00000200

Definition at line 170 of file timer.h.

#define TIMER_5A_SYNC   0x00000400

Definition at line 171 of file timer.h.

#define TIMER_5B_SYNC   0x00000800

Definition at line 172 of file timer.h.

#define TIMER_ADC_CAPEVENT_A   0x00000004

Definition at line 223 of file timer.h.

#define TIMER_ADC_CAPEVENT_B   0x00000400

Definition at line 218 of file timer.h.

#define TIMER_ADC_CAPMATCH_A   0x00000002

Definition at line 224 of file timer.h.

#define TIMER_ADC_CAPMATCH_B   0x00000200

Definition at line 219 of file timer.h.

#define TIMER_ADC_MODEMATCH_A   0x00000010

Definition at line 221 of file timer.h.

#define TIMER_ADC_MODEMATCH_B   0x00000800

Definition at line 217 of file timer.h.

#define TIMER_ADC_RTC_A   0x00000008

Definition at line 222 of file timer.h.

#define TIMER_ADC_TIMEOUT_A   0x00000001

Definition at line 225 of file timer.h.

#define TIMER_ADC_TIMEOUT_B   0x00000100

Definition at line 220 of file timer.h.

#define TIMER_CAPA_EVENT   0x00000004

Definition at line 133 of file timer.h.

#define TIMER_CAPA_MATCH   0x00000002

Definition at line 134 of file timer.h.

#define TIMER_CAPB_EVENT   0x00000400

Definition at line 127 of file timer.h.

#define TIMER_CAPB_MATCH   0x00000200

Definition at line 128 of file timer.h.

#define TIMER_CFG_A_ACT_CLRSETTO   0x000E0000

Definition at line 99 of file timer.h.

#define TIMER_CFG_A_ACT_CLRTO   0x00040000

Definition at line 89 of file timer.h.

#define TIMER_CFG_A_ACT_CLRTOGTO   0x000A0000

Definition at line 95 of file timer.h.

#define TIMER_CFG_A_ACT_NONE   0x00000000

Definition at line 87 of file timer.h.

#define TIMER_CFG_A_ACT_SETCLRTO   0x000C0000

Definition at line 97 of file timer.h.

#define TIMER_CFG_A_ACT_SETTO   0x00060000

Definition at line 91 of file timer.h.

#define TIMER_CFG_A_ACT_SETTOGTO   0x00080000

Definition at line 93 of file timer.h.

#define TIMER_CFG_A_ACT_TOGGLE   0x00020000

Definition at line 88 of file timer.h.

#define TIMER_CFG_A_ACT_TOINTD   0x00010000

Definition at line 85 of file timer.h.

#define TIMER_CFG_A_CAP_COUNT   0x00000003

Definition at line 71 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_CAP_COUNT_UP   0x00000013

Definition at line 72 of file timer.h.

#define TIMER_CFG_A_CAP_TIME   0x00000007

Definition at line 73 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_CAP_TIME_UP   0x00000017

Definition at line 74 of file timer.h.

#define TIMER_CFG_A_ONE_SHOT   0x00000021

Definition at line 67 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_ONE_SHOT_UP   0x00000031

Definition at line 68 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_PERIODIC   0x00000022

Definition at line 69 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_PERIODIC_UP   0x00000032

Definition at line 70 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_A_PWM   0x0000000A

Definition at line 75 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_ACT_CLRSETTO   0x0000E000

Definition at line 115 of file timer.h.

#define TIMER_CFG_B_ACT_CLRTO   0x00400000

Definition at line 105 of file timer.h.

#define TIMER_CFG_B_ACT_CLRTOGTO   0x00A00000

Definition at line 111 of file timer.h.

#define TIMER_CFG_B_ACT_NONE   0x00000000

Definition at line 103 of file timer.h.

#define TIMER_CFG_B_ACT_SETCLRTO   0x00C00000

Definition at line 113 of file timer.h.

#define TIMER_CFG_B_ACT_SETTO   0x00600000

Definition at line 107 of file timer.h.

#define TIMER_CFG_B_ACT_SETTOGTO   0x00800000

Definition at line 109 of file timer.h.

#define TIMER_CFG_B_ACT_TOGGLE   0x00200000

Definition at line 104 of file timer.h.

#define TIMER_CFG_B_ACT_TOINTD   0x00100000

Definition at line 101 of file timer.h.

#define TIMER_CFG_B_CAP_COUNT   0x00000300

Definition at line 80 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_CAP_COUNT_UP   0x00001300

Definition at line 81 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_CAP_TIME   0x00000700

Definition at line 82 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_CAP_TIME_UP   0x00001700

Definition at line 83 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_ONE_SHOT   0x00002100

Definition at line 76 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_ONE_SHOT_UP   0x00003100

Definition at line 77 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_PERIODIC   0x00002200

Definition at line 78 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_PERIODIC_UP   0x00003200

Definition at line 79 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_B_PWM   0x00000A00

Definition at line 84 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_ONE_SHOT   0x00000021

Definition at line 59 of file timer.h.

Referenced by button_debounce_start(), main(), and TimerConfigure().

#define TIMER_CFG_ONE_SHOT_UP   0x00000031

Definition at line 60 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_PERIODIC   0x00000022

Definition at line 62 of file timer.h.

Referenced by main(), and TimerConfigure().

#define TIMER_CFG_PERIODIC_UP   0x00000032

Definition at line 63 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_RTC   0x01000000

Definition at line 65 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CFG_SPLIT_PAIR   0x04000000

Definition at line 66 of file timer.h.

Referenced by TimerConfigure().

#define TIMER_CLOCK_PIOSC   0x00000001

Definition at line 193 of file timer.h.

Referenced by TimerClockSourceSet().

#define TIMER_CLOCK_SYSTEM   0x00000000

Definition at line 192 of file timer.h.

Referenced by TimerClockSourceSet().

#define TIMER_DMA_CAPEVENT_A   0x00000004

Definition at line 207 of file timer.h.

#define TIMER_DMA_CAPEVENT_B   0x00000400

Definition at line 202 of file timer.h.

#define TIMER_DMA_CAPMATCH_A   0x00000002

Definition at line 208 of file timer.h.

#define TIMER_DMA_CAPMATCH_B   0x00000200

Definition at line 203 of file timer.h.

#define TIMER_DMA_MODEMATCH_A   0x00000010

Definition at line 205 of file timer.h.

#define TIMER_DMA_MODEMATCH_B   0x00000800

Definition at line 201 of file timer.h.

#define TIMER_DMA_RTC_A   0x00000008

Definition at line 206 of file timer.h.

#define TIMER_DMA_TIMEOUT_A   0x00000001

Definition at line 209 of file timer.h.

#define TIMER_DMA_TIMEOUT_B   0x00000100

Definition at line 204 of file timer.h.

#define TIMER_EVENT_BOTH_EDGES   0x00000C0C

Definition at line 144 of file timer.h.

#define TIMER_EVENT_NEG_EDGE   0x00000404

Definition at line 143 of file timer.h.

#define TIMER_EVENT_POS_EDGE   0x00000000

Definition at line 142 of file timer.h.

#define TIMER_RTC_MATCH   0x00000008

Definition at line 132 of file timer.h.

#define TIMER_TIMA_DMA   0x00000020

Definition at line 130 of file timer.h.

#define TIMER_TIMA_MATCH   0x00000010

Definition at line 131 of file timer.h.

#define TIMER_TIMA_TIMEOUT   0x00000001
#define TIMER_TIMB_DMA   0x00002000

Definition at line 125 of file timer.h.

#define TIMER_TIMB_MATCH   0x00000800

Definition at line 126 of file timer.h.

#define TIMER_TIMB_TIMEOUT   0x00000100

Definition at line 129 of file timer.h.

#define TIMER_UP_LOAD_IMMEDIATE   0x00000000

Definition at line 232 of file timer.h.

#define TIMER_UP_LOAD_TIMEOUT   0x00000100

Definition at line 233 of file timer.h.

#define TIMER_UP_MATCH_IMMEDIATE   0x00000000

Definition at line 234 of file timer.h.

#define TIMER_UP_MATCH_TIMEOUT   0x00000400

Definition at line 236 of file timer.h.

#define WTIMER_0A_SYNC   0x00001000

Definition at line 173 of file timer.h.

#define WTIMER_0B_SYNC   0x00002000

Definition at line 174 of file timer.h.

#define WTIMER_1A_SYNC   0x00004000

Definition at line 175 of file timer.h.

#define WTIMER_1B_SYNC   0x00008000

Definition at line 176 of file timer.h.

#define WTIMER_2A_SYNC   0x00010000

Definition at line 177 of file timer.h.

#define WTIMER_2B_SYNC   0x00020000

Definition at line 178 of file timer.h.

#define WTIMER_3A_SYNC   0x00040000

Definition at line 179 of file timer.h.

#define WTIMER_3B_SYNC   0x00080000

Definition at line 180 of file timer.h.

#define WTIMER_4A_SYNC   0x00100000

Definition at line 181 of file timer.h.

#define WTIMER_4B_SYNC   0x00200000

Definition at line 182 of file timer.h.

#define WTIMER_5A_SYNC   0x00400000

Definition at line 183 of file timer.h.

#define WTIMER_5B_SYNC   0x00800000

Definition at line 184 of file timer.h.