arch/nrf{52|53|91}: let the events from comparator correspond to CC id

this allows us to use the same value to set the comparator and handle comparator events,
making RTC easier to use
This commit is contained in:
raiden00pl 2024-02-13 19:38:34 +01:00 committed by Xiang Xiao
parent 1d94b2159c
commit f4324e118e
3 changed files with 18 additions and 18 deletions

View file

@ -80,12 +80,12 @@ enum nrf52_rtc_cc_e
enum nrf52_rtc_evt_e
{
NRF52_RTC_EVT_TICK = 0,
NRF52_RTC_EVT_OVRFLW = 1,
NRF52_RTC_EVT_COMPARE0 = 2,
NRF52_RTC_EVT_COMPARE1 = 3,
NRF52_RTC_EVT_COMPARE2 = 4,
NRF52_RTC_EVT_COMPARE3 = 5,
NRF52_RTC_EVT_COMPARE0 = 0,
NRF52_RTC_EVT_COMPARE1 = 1,
NRF52_RTC_EVT_COMPARE2 = 2,
NRF52_RTC_EVT_COMPARE3 = 3,
NRF52_RTC_EVT_TICK = 4,
NRF52_RTC_EVT_OVRFLW = 5,
};
/* NRF52 RTC device */

View file

@ -80,12 +80,12 @@ enum nrf53_rtc_cc_e
enum nrf53_rtc_evt_e
{
NRF53_RTC_EVT_TICK = 0,
NRF53_RTC_EVT_OVRFLW = 1,
NRF53_RTC_EVT_COMPARE0 = 2,
NRF53_RTC_EVT_COMPARE1 = 3,
NRF53_RTC_EVT_COMPARE2 = 4,
NRF53_RTC_EVT_COMPARE3 = 5,
NRF53_RTC_EVT_COMPARE0 = 0,
NRF53_RTC_EVT_COMPARE1 = 1,
NRF53_RTC_EVT_COMPARE2 = 2,
NRF53_RTC_EVT_COMPARE3 = 3,
NRF53_RTC_EVT_TICK = 4,
NRF53_RTC_EVT_OVRFLW = 5,
};
/* NRF53 RTC device */

View file

@ -80,12 +80,12 @@ enum nrf91_rtc_cc_e
enum nrf91_rtc_evt_e
{
NRF91_RTC_EVT_TICK = 0,
NRF91_RTC_EVT_OVRFLW = 1,
NRF91_RTC_EVT_COMPARE0 = 2,
NRF91_RTC_EVT_COMPARE1 = 3,
NRF91_RTC_EVT_COMPARE2 = 4,
NRF91_RTC_EVT_COMPARE3 = 5,
NRF91_RTC_EVT_COMPARE0 = 0,
NRF91_RTC_EVT_COMPARE1 = 1,
NRF91_RTC_EVT_COMPARE2 = 2,
NRF91_RTC_EVT_COMPARE3 = 3,
NRF91_RTC_EVT_TICK = 4,
NRF91_RTC_EVT_OVRFLW = 5,
};
/* NRF91 RTC device */