arch/{nrf52|nrf53|nrf91}/tim.c: fix typo

fix offset for EVENT COMPARE0
This commit is contained in:
raiden00pl 2024-01-28 15:14:38 +01:00 committed by Xiang Xiao
parent 535a3dbb18
commit 9d761b8ca4
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}