142 #ifndef ti_drivers_timer_GPTIMERCC26XX__include 143 #define ti_drivers_timer_GPTIMERCC26XX__include 153 #include <ti/drivers/dpl/HwiP.h> 155 #include <ti/devices/DeviceFamily.h> 156 #include DeviceFamily_constructPath(inc/hw_gpt.h) 157 #include DeviceFamily_constructPath(driverlib/event.h) 158 #include DeviceFamily_constructPath(driverlib/ioc.h) 159 #include DeviceFamily_constructPath(driverlib/timer.h) 189 GPT_TAMR_TACM_EDGCNT,
192 GPT_TAMR_TACM_EDGTIME,
196 GPT_TAMR_TAAMS_PWM | GPT_TAMR_TACM_EDGCNT | \
197 GPT_TAMR_TAPLO_CCP_ON_TO | GPT_TAMR_TAPWMIE_EN | \
198 GPT_TAMR_TAMRSU_CYCLEUPDATE,
216 #define GPT_NUM_INTS 4 230 #define GPT_PARTS_COUNT 2 uint32_t GPTimerCC26XX_Value
Definition: GPTimerCC26XX.h:285
GPTimerCC26XX_DebugMode debugStallMode
Definition: GPTimerCC26XX.h:397
GPTimerCC26XX_DebugMode
Definitions for controlling timer debug stall mode.
Definition: GPTimerCC26XX.h:256
Definition: GPTimerCC26XX.h:211
Definition: GPTimerCC26XX.h:167
struct GPTimerCC26XX_Object GPTimerCC26XX_Object
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:227
uint8_t intNum
Definition: GPTimerCC26XX.h:315
Definition: GPTimerCC26XX.h:259
uint8_t intPriority
Definition: GPTimerCC26XX.h:325
GPTimerCC26XX Parameters.
Definition: GPTimerCC26XX.h:393
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:179
Definition: GPTimerCC26XX.h:212
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:282
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...
static GPTimerCC26XX_PinMux GPTimerCC26XX_getPinMux(GPTimerCC26XX_Handle handle)
Function to return the PIN mux used by the GPTimer identified by handle. This is used to connect a GP...
Definition: GPTimerCC26XX.h:647
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:246
uint8_t powerMngrId
Definition: GPTimerCC26XX.h:327
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:240
Definition: GPTimerCC26XX.h:245
GPTimerCC26XX_Config * GPTimerCC26XX_Handle
Definition: GPTimerCC26XX.h:279
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:244
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:271
uint32_t baseAddr
Definition: GPTimerCC26XX.h:313
Definition: GPTimerCC26XX.h:247
struct GPTimerCC26XX_HWAttrs GPTimerCC26XX_HWAttrs
GPTimer26XX Hardware attributes.
GPTimerCC26XX_Mode mode
Definition: GPTimerCC26XX.h:396
Definition: GPTimerCC26XX.h:249
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:258
Definition: GPTimerCC26XX.h:210
Definition: GPTimerCC26XX.h:269
Definition: GPTimerCC26XX.h:243
GPTimer26XX Object.
Definition: GPTimerCC26XX.h:348
GPTimerCC26XX_Part timer
Definition: GPTimerCC26XX.h:329
GPTimer Global configuration.
Definition: GPTimerCC26XX.h:378
#define GPT_PARTS_COUNT
Definition: GPTimerCC26XX.h:230
Definition: GPTimerCC26XX.h:168
GPTimerCC26XX_Edge
Definitions for controlling edges used for timer capture. Used in GPTimer edge-time and edge-count mo...
Definition: GPTimerCC26XX.h:267
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:350
Definition: GPTimerCC26XX.h:195
GPTimer26XX Hardware attributes.
Definition: GPTimerCC26XX.h:310
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:182
Definition: GPTimerCC26XX.h:248
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:331
GPTimerCC26XX_Part
Definitions for GPTimer parts (Timer A / Timer B). Used in GPTimer configuration structure GPTimerCC2...
Definition: GPTimerCC26XX.h:224
Definition: GPTimerCC26XX.h:270
Definition: GPTimerCC26XX.h:226
void(* GPTimerCC26XX_HwiFxn)(GPTimerCC26XX_Handle handle, GPTimerCC26XX_IntMask interruptMask)
Definition: GPTimerCC26XX.h:288
GPTimerCC26XX_Interrupt
Definitions for supported GPTimer interrupts. GPTimerCC26XX_IntMask arguments should be a bit vector ...
Definition: GPTimerCC26XX.h:207
void GPTimerCC26XX_stop(GPTimerCC26XX_Handle handle)
Function to stop the specified GPTimer.
GPTimerCC26XX_Part timerPart
Definition: GPTimerCC26XX.h:382
GPTimerCC26XX_Width
Definitions for specifying the GPTimer configuration (width)
Definition: GPTimerCC26XX.h:165
GPTimerCC26XX_Width width
Definition: GPTimerCC26XX.h:395
Definition: GPTimerCC26XX.h:191
Definition: GPTimerCC26XX.h:185
Definition: GPTimerCC26XX.h:242
GPTimerCC26XX_Object * object
Definition: GPTimerCC26XX.h:380
void GPTimerCC26XX_Params_init(GPTimerCC26XX_Params *params)
Function to initialize the GPTimerCC26XX_Params struct to its default values.
Definition: GPTimerCC26XX.h:209
const GPTimerCC26XX_HWAttrs * hwAttrs
Definition: GPTimerCC26XX.h:381
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...
Definition: GPTimerCC26XX.h:188