timer: nrf_rtc: Use CMSIS NVIC APIs directly

Convert driver to use the CMSIS NVIC APIs rather than the internal ones
so we can remove them in the future.

Change-Id: I31c2f37bc0aa35668a441f4ef2821b768dd7b817
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-01-13 10:36:45 -06:00
commit 8c75d79a15

View file

@ -8,6 +8,7 @@
#include <clock_control.h> #include <clock_control.h>
#include <system_timer.h> #include <system_timer.h>
#include <drivers/clock_control/nrf5_clock_control.h> #include <drivers/clock_control/nrf5_clock_control.h>
#include <arch/arm/cortex_m/cmsis.h>
#define RTC_TICKS ((uint32_t)(((((uint64_t)1000000UL / \ #define RTC_TICKS ((uint32_t)(((((uint64_t)1000000UL / \
CONFIG_SYS_CLOCK_TICKS_PER_SEC) * \ CONFIG_SYS_CLOCK_TICKS_PER_SEC) * \
@ -62,7 +63,7 @@ static uint32_t rtc_compare_set(uint32_t rtc_ticks)
isr_req = req; isr_req = req;
} }
_NvicIrqPend(NRF5_IRQ_RTC1_IRQn); NVIC_SetPendingIRQ(NRF5_IRQ_RTC1_IRQn);
} }
#endif /* CONFIG_TICKLESS_IDLE */ #endif /* CONFIG_TICKLESS_IDLE */