The friendly Operating System for the Internet of Things
CC2538 General Purpose Timer

Detailed Description

Files

file  cc2538_gptimer.h
 CC2538 General Purpose Timer (GPTIMER) driver.
 

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 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.
 

Macro Definition Documentation

#define GPTIMER_NUMOF   4

Definition at line 31 of file cc2538_gptimer.h.

#define NUM_CHANNELS_PER_GPTIMER   2

timer unit has two channels: A and B.

Definition at line 32 of file cc2538_gptimer.h.

Enumeration Type Documentation

anonymous enum
Enumerator
GPTIMER_ONE_SHOT_MODE 

GPTIMER one-shot mode.

GPTIMER_PERIODIC_MODE 

GPTIMER periodic mode.

GPTIMER_CAPTURE_MODE 

GPTIMER capture mode.

Definition at line 34 of file cc2538_gptimer.h.

anonymous enum
Enumerator
GPTMCFG_32_BIT_TIMER 

32-bit timer configuration

GPTMCFG_32_BIT_REAL_TIME_CLOCK 

32-bit real-time clock

GPTMCFG_16_BIT_TIMER 

16-bit timer configuration

Definition at line 40 of file cc2538_gptimer.h.