arch/{nrf52|nrf53|nrf91}/tim.c: fix typo
fix offset for EVENT COMPARE0
This commit is contained in:
parent
535a3dbb18
commit
9d761b8ca4
@ -657,7 +657,7 @@ static int nrf52_tim_checkint(struct nrf52_tim_dev_s *dev, uint8_t s)
|
||||
|
||||
case NRF52_TIM_INT_COMPARE1:
|
||||
{
|
||||
ret = nrf52_tim_getreg(dev, NRF52_TIM_EVENTS_COMPARE_OFFSET(0));
|
||||
ret = nrf52_tim_getreg(dev, NRF52_TIM_EVENTS_COMPARE_OFFSET(1));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -657,7 +657,7 @@ static int nrf53_tim_checkint(struct nrf53_tim_dev_s *dev, uint8_t s)
|
||||
|
||||
case NRF53_TIM_INT_COMPARE1:
|
||||
{
|
||||
ret = nrf53_tim_getreg(dev, NRF53_TIM_EVENTS_COMPARE_OFFSET(0));
|
||||
ret = nrf53_tim_getreg(dev, NRF53_TIM_EVENTS_COMPARE_OFFSET(1));
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -657,7 +657,7 @@ static int nrf91_tim_checkint(struct nrf91_tim_dev_s *dev, uint8_t s)
|
||||
|
||||
case NRF91_TIM_INT_COMPARE1:
|
||||
{
|
||||
ret = nrf91_tim_getreg(dev, NRF91_TIM_EVENTS_COMPARE_OFFSET(0));
|
||||
ret = nrf91_tim_getreg(dev, NRF91_TIM_EVENTS_COMPARE_OFFSET(1));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user