Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c
- Revision:
- 151:5eaa88a5bcc7
- Parent:
- 150:02e0a0aed4ec
- Child:
- 160:d5399cc887bb
diff -r 02e0a0aed4ec -r 5eaa88a5bcc7 targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c --- a/targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c Tue Nov 08 17:45:16 2016 +0000 +++ b/targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c Thu Nov 24 17:03:03 2016 +0000 @@ -110,9 +110,6 @@ // events will be enabled or disabled as needed (such approach is more // energy efficient). nrf_rtc_int_enable(COMMON_RTC_INSTANCE, - #if defined(TARGET_MCU_NRF51822) - OS_TICK_INT_MASK | - #endif #if DEVICE_LOWPOWERTIMER LP_TICKER_INT_MASK | #endif @@ -506,6 +503,7 @@ int os_tick_init (void) { common_rtc_init(); + nrf_rtc_int_enable(COMMON_RTC_INSTANCE, OS_TICK_INT_MASK); nrf_rtc_cc_set(COMMON_RTC_INSTANCE, OS_TICK_CC_CHANNEL, 0); register_next_tick();