CC2538 General Purpose Timer (GPTIMER) driver. More...

Detailed Description

CC2538 General Purpose Timer (GPTIMER) driver.

Author
Ian Martin ian@l.nosp@m.ocic.nosp@m.ontro.nosp@m.ls.c.nosp@m.om

Definition in file cc2538_gptimer.h.

#include <stdint.h>
#include "cc2538.h"
+ Include dependency graph for cc2538_gptimer.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cc2538_gptimer_t
 GPTIMER component registers. More...
 

Macros

#define GPTIMER_NUMOF   4
 The CC2538 has four general-purpose timer units. More...
 
#define NUM_CHANNELS_PER_GPTIMER   2
 Each G.P. More...
 
#define GPTIMER_BASE   (0x40030000)
 Base address of general-purpose timers (GPT)
 
#define GPTIMER0   ( (cc2538_gptimer_t*)0x40030000 )
 GPTIMER0 Instance.
 
#define GPTIMER1   ( (cc2538_gptimer_t*)0x40031000 )
 GPTIMER1 Instance.
 
#define GPTIMER2   ( (cc2538_gptimer_t*)0x40032000 )
 GPTIMER2 Instance.
 
#define GPTIMER3   ( (cc2538_gptimer_t*)0x40033000 )
 GPTIMER3 Instance.
 

Enumerations

enum  { GPTIMER_ONE_SHOT_MODE = 1, GPTIMER_PERIODIC_MODE = 2, GPTIMER_CAPTURE_MODE = 3 }
 
enum  { GPTMCFG_32_BIT_TIMER = 0, GPTMCFG_32_BIT_REAL_TIME_CLOCK = 1, GPTMCFG_16_BIT_TIMER = 4 }
 

Functions

void isr_timer0_chan0 (void)
 RIOT Timer 0 Channel 0 Interrupt Service Routine.
 
void isr_timer0_chan1 (void)
 RIOT Timer 0 Channel 1 Interrupt Service Routine.
 
void isr_timer1_chan0 (void)
 RIOT Timer 1 Channel 0 Interrupt Service Routine.
 
void isr_timer1_chan1 (void)
 RIOT Timer 1 Channel 1 Interrupt Service Routine.
 
void isr_timer2_chan0 (void)
 RIOT Timer 2 Channel 0 Interrupt Service Routine.
 
void isr_timer2_chan1 (void)
 RIOT Timer 2 Channel 1 Interrupt Service Routine.
 
void isr_timer3_chan0 (void)
 RIOT Timer 3 Channel 0 Interrupt Service Routine.
 
void isr_timer3_chan1 (void)
 RIOT Timer 3 Channel 1 Interrupt Service Routine.