Skip to content

Commit

Permalink
boards: adapt timer config of board cc2650stk (aka TI SensorTag)
Browse files Browse the repository at this point in the history
  • Loading branch information
smlng committed Jul 21, 2017
1 parent 9141245 commit 864e9f5
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions boards/cc2650stk/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,23 @@ extern "C" {
*/
static const timer_conf_t timer_config[] = {
{
.dev = GPT0,
.num = 0
.cfg = GPT_CFG_16T,
.chn = 2,
},
{
.dev = GPT1,
.num = 1
.cfg = GPT_CFG_32T,
.chn = 1,
},
{
.cfg = GPT_CFG_16T,
.chn = 2,
},
{
.cfg = GPT_CFG_32T,
.chn = 1,
}
};

#define TIMER_0_ISR isr_timer0_chan0
#define TIMER_1_ISR isr_timer1_chan0

#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */

Expand Down

0 comments on commit 864e9f5

Please sign in to comment.