Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
239 changes: 0 additions & 239 deletions targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/common_rtc.c

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@
#include "lp_ticker_api.h"
#include "mbed_critical.h"

#if defined(NRF52_ERRATA_20)
#include "softdevice_handler.h"
#if defined(NRF52_PAN_20)
/* Macro for testing if the SoftDevice is active, regardless of whether the
* application is build with the SoftDevice or not.
*/
#if defined(SOFTDEVICE_PRESENT)
#include "nrf_sdh.h"
#define NRF_HAL_SD_IS_ENABLED() nrf_sdh_is_enabled()
#else
#define NRF_HAL_SD_IS_ENABLED() 0
#endif
#endif


Expand Down Expand Up @@ -92,8 +100,8 @@ void COMMON_RTC_IRQ_HANDLER(void)
/* Function for fix errata 20: RTC Register values are invalid. */
__STATIC_INLINE void errata_20(void)
{
#if defined(NRF52_ERRATA_20)
if (!softdevice_handler_is_enabled())
#if defined(NRF52_PAN_20)
if (!NRF_HAL_SD_IS_ENABLED())
{
NRF_CLOCK->EVENTS_LFCLKSTARTED = 0;
NRF_CLOCK->TASKS_LFCLKSTART = 1;
Expand Down
6 changes: 4 additions & 2 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -3644,6 +3644,7 @@
"I2C_ASYNCH",
"INTERRUPTIN",
"ITM",
"LPTICKER",
"PORTIN",
"PORTINOUT",
"PORTOUT",
Expand All @@ -3656,7 +3657,8 @@
"SPI",
"SPI_ASYNCH",
"STCLK_OFF_DURING_SLEEP",
"TRNG"
"TRNG",
"USTICKER"
],
"extra_labels": [
"NORDIC",
Expand Down Expand Up @@ -3692,7 +3694,7 @@
"NRF52840_DK": {
"supported_form_factors": ["ARDUINO"],
"inherits": ["MCU_NRF52840"],
"release_versions": [],
"release_versions": ["5"],
"device_name": "nRF52840_xxAA"
},
"BLUEPILL_F103C8": {
Expand Down