具体移植可以参考例程E:\nRF5_SDK\nRF5_SDK_15.2.0_9412b96\examples\peripheral\flash_fstorage
static void fstorage_evt_handler(nrf_fstorage_evt_t * p_evt)
{
if (p_evt->result != NRF_SUCCESS)
{
// NRF_LOG_INFO("--> Event received: ERROR while executing an fstorage operation.");
return;
}
switch (p_evt->id)
{
case NRF_FSTORAGE_EVT_WRITE_RESULT:
{
// NRF_LOG_INFO("--> Event received: wrote %d bytes at address 0x%x.",
// p_evt->len, p_evt->addr);
} break;
case NRF_FSTORAGE_EVT_ERASE_RESULT:
{
// NRF_LOG_INFO("--> Event received: erased %d page from address 0x%x.",
// p_evt->len, p_evt->addr);
} break;
default: