mirror of
https://github.com/espressif/openthread.git
synced 2026-09-02 15:20:07 +00:00
[nrf52840] use otSys prefix in the SoftDevice platform API (#3025)
This commit is contained in:
@@ -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_
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user