RTC: Fix subscribe prototypes and calls from HAL

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-10-04 14:48:13 +02:00
parent ca554e9183
commit 99ae7916fb
2 changed files with 8 additions and 9 deletions

View File

@ -13,7 +13,6 @@
extern "C"{
#endif
void nrf_rtc_LF_tick(void);
void nhw_rtc_update_COUNTER(uint rtc);
void nhw_rtc_regw_sideeffect_TASKS_START(uint i);
void nhw_rtc_regw_sideeffect_TASKS_STOP(uint i);
@ -26,10 +25,10 @@ void nhw_rtc_regw_sideeffect_EVTENSET(uint i);
void nhw_rtc_regw_sideeffect_EVTENCLR(uint i);
void nhw_rtc_regw_sideeffects_EVENTS_all(uint rtc);
void nhw_rtc_regw_sideeffects_CC(uint rtc, uint cc_n);
void nrf_rtc_regw_sideeffects_SUBSCRIBE_START(uint inst);
void nrf_rtc_regw_sideeffects_SUBSCRIBE_STOP(uint inst);
void nrf_rtc_regw_sideeffects_SUBSCRIBE_CLEAR(uint inst);
void nrf_rtc_regw_sideeffects_SUBSCRIBE_TRIGOVRFLW(uint inst);
void nhw_rtc_regw_sideeffects_SUBSCRIBE_START(uint inst);
void nhw_rtc_regw_sideeffects_SUBSCRIBE_STOP(uint inst);
void nhw_rtc_regw_sideeffects_SUBSCRIBE_CLEAR(uint inst);
void nhw_rtc_regw_sideeffects_SUBSCRIBE_TRIGOVRFLW(uint inst);
void nhw_rtc_regw_sideeffects_SUBSCRIBE_CAPTURE(uint inst, uint cc);
void nhw_rtc_notify_first_lf_tick(void);

View File

@ -97,13 +97,13 @@ static void nrf_rtc_subscribe_common(NRF_RTC_Type * p_reg,
int i = rtc_number_from_ptr(p_reg);
if (task == NRF_RTC_TASK_START) {
nrf_rtc_regw_sideeffects_SUBSCRIBE_START(i);
nhw_rtc_regw_sideeffects_SUBSCRIBE_START(i);
} else if (task == NRF_RTC_TASK_STOP) {
nrf_rtc_regw_sideeffects_SUBSCRIBE_STOP(i);
nhw_rtc_regw_sideeffects_SUBSCRIBE_STOP(i);
} else if (task == NRF_RTC_TASK_CLEAR) {
nrf_rtc_regw_sideeffects_SUBSCRIBE_CLEAR(i);
nhw_rtc_regw_sideeffects_SUBSCRIBE_CLEAR(i);
} else if (task == NRF_RTC_TASK_TRIGGER_OVERFLOW) {
nrf_rtc_regw_sideeffects_SUBSCRIBE_TRIGOVRFLW(i);
nhw_rtc_regw_sideeffects_SUBSCRIBE_TRIGOVRFLW(i);
#if defined(RTC_TASKS_CAPTURE_TASKS_CAPTURE_Msk)
} else if (task >= NRF_RTC_TASK_CAPTURE_0) {
int cc_n = (task - NRF_RTC_TASK_CAPTURE_0)/sizeof(uint32_t);