cfg_timer_default.h File Reference

Common default timer configuration for cc2538 boards. More...

Detailed Description

Common default timer configuration for cc2538 boards.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Antonio Lignan alina.nosp@m.n@zo.nosp@m.lerti.nosp@m.a.co.nosp@m.m
Sebastian Meiling s@mln.nosp@m.g.ne.nosp@m.t

Definition in file cfg_timer_default.h.

#include "periph_cpu.h"
+ Include dependency graph for cfg_timer_default.h:

Go to the source code of this file.

Timer configuration

General purpose timers (GPT[0-3]) are configured consecutively and in order (without gaps) starting from GPT0, i.e.

if multiple timers are enabled.

#define TIMER_NUMOF   ARRAY_SIZE(timer_config)
 
#define TIMER_IRQ_PRIO   1
 
static const timer_conf_t timer_config []
 

Variable Documentation

◆ timer_config

const timer_conf_t timer_config[]
static
Initial value:
= {
{
.chn = 2,
},
{
.chn = 2,
},
{
.chn = 1,
},
{
.chn = 1,
},
}

Definition at line 39 of file cfg_timer_default.h.

GPTMCFG_16_BIT_TIMER
@ GPTMCFG_16_BIT_TIMER
16-bit timer configuration
Definition: cc2538_gptimer.h:48
GPTMCFG_32_BIT_TIMER
@ GPTMCFG_32_BIT_TIMER
32-bit timer configuration
Definition: cc2538_gptimer.h:46