[nrf52840] use otSys prefix in the SoftDevice platform API (#3025)

This commit is contained in:
Hubert Miś
2018-09-05 23:17:54 -10:00
committed by Jonathan Hui
parent 7917c7b1cc
commit d05542dbf5
2 changed files with 5 additions and 5 deletions
@@ -54,18 +54,18 @@ typedef struct
uint16_t timeslotAllocIters; /**< Maximum number of iteration of dividing timeslot_length by factor of 2 performed by arbiter. */
uint16_t timeslotSafeMargin; /**< Safe margin before timeslot is finished and nrf_raal_timeslot_ended should be called in microseconds. */
uint16_t lfClkAccuracyPpm; /**< Clock accuracy in ppm unit. */
} PlatformSoftdeviceRaalConfigParams;
} otSysSoftdeviceRaalConfigParams;
/**
* Function for processing SoftDevice SoC events.
*
*/
void PlatformSoftdeviceSocEvtHandler(uint32_t aEvtId);
void otSysSoftdeviceSocEvtHandler(uint32_t aEvtId);
/**
* Function used to set non-default parameters of Softdevice RAAL.
*
*/
void PlatformSoftdeviceRaalConfig(const PlatformSoftdeviceRaalConfigParams *aConfig);
void otSysSoftdeviceRaalConfig(const otSysSoftdeviceRaalConfigParams *aConfig);
#endif // PLATFORM_SOFTDEVICE_H_
+2 -2
View File
@@ -82,13 +82,13 @@ otError nrf5SdErrorToOtError(uint32_t aSdError)
}
}
void PlatformSoftdeviceSocEvtHandler(uint32_t aEvtId)
void otSysSoftdeviceSocEvtHandler(uint32_t aEvtId)
{
nrf5SdSocFlashProcess(aEvtId);
nrf_raal_softdevice_soc_evt_handler(aEvtId);
}
void PlatformSoftdeviceRaalConfig(const PlatformSoftdeviceRaalConfigParams *aConfig)
void otSysSoftdeviceRaalConfig(const otSysSoftdeviceRaalConfigParams *aConfig)
{
nrf_raal_softdevice_cfg_t cfg;
memset(&cfg, 0, sizeof(cfg));