142 #ifndef ti_drivers_timer_GPTIMERCC26XX__include
143 #define ti_drivers_timer_GPTIMERCC26XX__include
155 #include <ti/sysbios/family/arm/m3/Hwi.h>
157 #include <driverlib/event.h>
158 #include <driverlib/ioc.h>
159 #include <driverlib/timer.h>
160 #include <inc/hw_gpt.h>
191 GPT_TAMR_TACM_EDGCNT,
194 GPT_TAMR_TACM_EDGTIME,
198 GPT_TAMR_TAAMS_PWM | GPT_TAMR_TACM_EDGCNT | \
199 GPT_TAMR_TAPLO_CCP_ON_TO | GPT_TAMR_TAPWMIE_EN | \
200 GPT_TAMR_TAMRSU_CYCLEUPDATE,
218 #define GPT_NUM_INTS 4
uint32_t GPTimerCC26XX_Value
Definition: GPTimerCC26XX.h:286
bool isOpen[GPT_PARTS_COUNT]
Definition: GPTimerCC26XX.h:352
GPTimerCC26XX_DebugMode debugStallMode
Definition: GPTimerCC26XX.h:398
GPTimerCC26XX_DebugMode
Definitions for controlling timer debug stall mode.
Definition: GPTimerCC26XX.h:257
Definition: GPTimerCC26XX.h:213
Definition: GPTimerCC26XX.h:230
Definition: GPTimerCC26XX.h:169
struct GPTimerCC26XX_Object GPTimerCC26XX_Object
GPTimer26XX Object.
volatile bool powerConstraint[GPT_PARTS_COUNT]
Definition: GPTimerCC26XX.h:355
Definition: GPTimerCC26XX.h:229
uint8_t intNum
Definition: GPTimerCC26XX.h:316
Definition: GPTimerCC26XX.h:260
uint8_t intPriority
Definition: GPTimerCC26XX.h:326
GPTimerCC26XX Parameters.
Definition: GPTimerCC26XX.h:394
void GPTimerCC26XX_configureDebugStall(GPTimerCC26XX_Handle handle, GPTimerCC26XX_DebugMode mode)
Function to control timer debug stall mode. When enabled, the timer will stop when the debugger halts...
GPTimerCC26XX_Mode
Definitions for supported GPTimer modes. Driver code assumes only modes using prescaler as timer exte...
Definition: GPTimerCC26XX.h:181
Definition: GPTimerCC26XX.h:214
void GPTimerCC26XX_setLoadValue(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Value loadValue)
Function to set load value of the specified GPTimer. Function can be called while GPTimer is running...
uint16_t GPTimerCC26XX_IntMask
Definition: GPTimerCC26XX.h:283
void GPTimerCC26XX_disableInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Function to disable a set of GPTimer interrupt sources.
void GPTimerCC26XX_unregisterInterrupt(GPTimerCC26XX_Handle handle)
Function to disable a CPU interrupt for a given timer handle and disable all interrupt sources for co...
void GPTimerCC26XX_registerInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_HwiFxn callback, GPTimerCC26XX_IntMask intMask)
Function to register a CPU interrupt for a given timer handle and enable a set of timer interrupt sou...
Definition: GPTimerCC26XX.h:247
uint8_t powerMngrId
Definition: GPTimerCC26XX.h:328
GPTimerCC26XX_PinMux
Definitions for input / output ports in IO controller to connect GPTimer to a pin. Used in gptimerCC26xxHWAttrs for static timer configuration PIN driver is used to mux a pin to the timer.
Definition: GPTimerCC26XX.h:241
Definition: GPTimerCC26XX.h:246
GPTimerCC26XX_Config * GPTimerCC26XX_Handle
Definition: GPTimerCC26XX.h:280
void GPTimerCC26XX_setCaptureEdge(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Edge edge)
Function to set which input edge the GPTimer capture should use. Applies to edge-count and edge-time ...
Definition: GPTimerCC26XX.h:245
void GPTimerCC26XX_close(GPTimerCC26XX_Handle handle)
Function to close a GPTimer peripheral specified by the GPTimer handle. Closing timer will releae dep...
Definition: GPTimerCC26XX.h:272
uint32_t baseAddr
Definition: GPTimerCC26XX.h:314
Hwi_Struct hwi[GPT_PARTS_COUNT]
Definition: GPTimerCC26XX.h:353
Definition: GPTimerCC26XX.h:248
struct GPTimerCC26XX_HWAttrs GPTimerCC26XX_HWAttrs
GPTimer26XX Hardware attributes.
GPTimerCC26XX_Mode mode
Definition: GPTimerCC26XX.h:397
Definition: GPTimerCC26XX.h:250
struct GPTimerCC26XX_Params GPTimerCC26XX_Params
GPTimerCC26XX Parameters.
GPTimerCC26XX_Value GPTimerCC26XX_getFreeRunValue(GPTimerCC26XX_Handle handle)
Function to retrieve the current free-running value of timer.
Definition: GPTimerCC26XX.h:259
Definition: GPTimerCC26XX.h:212
Definition: GPTimerCC26XX.h:270
Definition: GPTimerCC26XX.h:244
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:349
GPTimerCC26XX_Part timer
Definition: GPTimerCC26XX.h:330
GPTimer Global configuration.
Definition: GPTimerCC26XX.h:379
Definition: GPTimerCC26XX.h:170
GPTimerCC26XX_Edge
Definitions for controlling edges used for timer capture. Used in GPTimer edge-time and edge-count mo...
Definition: GPTimerCC26XX.h:268
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:351
Definition: GPTimerCC26XX.h:197
GPTimer26XX Hardware attributes.
Definition: GPTimerCC26XX.h:311
void GPTimerCC26XX_start(GPTimerCC26XX_Handle handle)
Function to start the specified GPTimer with current settings.
GPTimerCC26XX_Value GPTimerCC26XX_getValue(GPTimerCC26XX_Handle handle)
Function to retrieve the current value of timer This returns the value of the timer in all modes exce...
void GPTimerCC26XX_setMatchValue(GPTimerCC26XX_Handle handle, GPTimerCC26XX_Value matchValue)
Function to set match value of the specified GPTimer. Function can be called while GPTimer is running...
Definition: GPTimerCC26XX.h:184
Definition: GPTimerCC26XX.h:249
GPTimerCC26XX_Handle GPTimerCC26XX_open(unsigned int index, const GPTimerCC26XX_Params *params)
This function opens a given GPTimer peripheral. Will set dependency on timer and configure it into sp...
GPTimerCC26XX_PinMux pinMux
Definition: GPTimerCC26XX.h:332
GPTimerCC26XX_Part
Definitions for GPTimer parts (Timer A / Timer B). Used in GPTimer configuration structure GPTimerCC2...
Definition: GPTimerCC26XX.h:226
Definition: GPTimerCC26XX.h:271
Definition: GPTimerCC26XX.h:228
void(* GPTimerCC26XX_HwiFxn)(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Definition: GPTimerCC26XX.h:289
GPTimerCC26XX_Interrupt
Definitions for supported GPTimer interrupts. GPTimerCC26XX_IntMask arguments should be a bit vector ...
Definition: GPTimerCC26XX.h:209
void GPTimerCC26XX_stop(GPTimerCC26XX_Handle handle)
Function to stop the specified GPTimer.
GPTimerCC26XX_Part timerPart
Definition: GPTimerCC26XX.h:383
GPTimerCC26XX_Width
Definitions for specifying the GPTimer configuration (width)
Definition: GPTimerCC26XX.h:167
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:396
Definition: GPTimerCC26XX.h:193
Definition: GPTimerCC26XX.h:187
Definition: GPTimerCC26XX.h:243
GPTimerCC26XX_Object * object
Definition: GPTimerCC26XX.h:381
void GPTimerCC26XX_Params_init(GPTimerCC26XX_Params *params)
Function to initialize the GPTimerCC26XX_Params struct to its default values.
Definition: GPTimerCC26XX.h:211
const GPTimerCC26XX_HWAttrs * hwAttrs
Definition: GPTimerCC26XX.h:382
void GPTimerCC26XX_enableInterrupt(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Function to enable a set of GPTimer interrupt sources. The interrupt to the CPU must be enabled using...
GPTimerCC26XX_HwiFxn hwiCallbackFxn[GPT_PARTS_COUNT]
Definition: GPTimerCC26XX.h:354
Definition: GPTimerCC26XX.h:190