diff --git a/examples/platforms/nrf528xx/src/flash_nosd.c b/examples/platforms/nrf528xx/src/flash_nosd.c index 0be99d0a4..8cb6b7dee 100644 --- a/examples/platforms/nrf528xx/src/flash_nosd.c +++ b/examples/platforms/nrf528xx/src/flash_nosd.c @@ -37,11 +37,11 @@ #include #include "platform-nrf5.h" -#include "hal/nrf_nvmc.h" +#include "drivers/include/nrfx_nvmc.h" otError nrf5FlashPageErase(uint32_t aAddress) { - nrf_nvmc_page_erase(aAddress); + nrfx_nvmc_page_erase(aAddress); return OT_ERROR_NONE; } @@ -53,6 +53,6 @@ bool nrf5FlashIsBusy(void) uint32_t nrf5FlashWrite(uint32_t aAddress, const uint8_t *aData, uint32_t aSize) { - nrf_nvmc_write_bytes(aAddress, aData, aSize); + nrfx_nvmc_bytes_write(aAddress, aData, aSize); return aSize; } diff --git a/third_party/NordicSemiconductor/Makefile.am b/third_party/NordicSemiconductor/Makefile.am index a0629c459..46e82b0f5 100644 --- a/third_party/NordicSemiconductor/Makefile.am +++ b/third_party/NordicSemiconductor/Makefile.am @@ -170,6 +170,7 @@ NORDICSEMI_COMMON_SOURCES libraries/app_error/app_error_weak.c \ libraries/utf_converter/utf.c \ nrfx/drivers/src/nrfx_clock.c \ + nrfx/drivers/src/nrfx_nvmc.c \ nrfx/drivers/src/nrfx_power.c \ nrfx/drivers/src/nrfx_spis.c \ nrfx/drivers/src/nrfx_systick.c \ @@ -471,6 +472,7 @@ noinst_HEADERS $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/nrfx_common.h \ $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/nrfx_errors.h \ $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_clock.h \ + $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_nvmc.h \ $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_power_clock.h \ $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_power.h \ $(top_srcdir)/third_party/NordicSemiconductor/nrfx/drivers/include/nrfx_spis.h \ diff --git a/third_party/NordicSemiconductor/config/app_config.h b/third_party/NordicSemiconductor/config/app_config.h index 8206f59b3..65f36bd6b 100644 --- a/third_party/NordicSemiconductor/config/app_config.h +++ b/third_party/NordicSemiconductor/config/app_config.h @@ -235,6 +235,10 @@ #endif // SPIS_AS_SERIAL_TRANSPORT == 1 +#ifndef NRFX_NVMC_ENABLED +#define NRFX_NVMC_ENABLED 1 +#endif + #ifndef TIMER_ENABLED #define TIMER_ENABLED 1 #endif