diff --git a/cpu/cc2538/periph/timer.c b/cpu/cc2538/periph/timer.c index 82e429d10c6026aa517f98d1044837bc4f76e71a..1165172da171eaa076e61ae6b9ee8d2f09fcdc94 100644 --- a/cpu/cc2538/periph/timer.c +++ b/cpu/cc2538/periph/timer.c @@ -174,7 +174,7 @@ int timer_set(tim_t dev, int channel, unsigned int timeout) gptimer->ICR = TBMIM; /* set timeout value */ - gptimer->TAMATCHR = (gptimer->CFG == GPTMCFG_32_BIT_TIMER)? (gptimer->TBV + timeout) : (gptimer->TBV - timeout); + gptimer->TBMATCHR = (gptimer->CFG == GPTMCFG_32_BIT_TIMER)? (gptimer->TBV + timeout) : (gptimer->TBV - timeout); gptimer->cc2538_gptimer_imr.IMR |= TBMIM; /**< Enable the Timer B Match Interrupt */ break; }