mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
arch/{nrf52|nrf53|nrf91}/tim.c: fix typo
fix offset for EVENT COMPARE0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user