[nrf52840] custom EUI-64 get (#2631)

This commit is contained in:
Krzysztof Bogucki
2018-03-21 16:09:06 +00:00
committed by Jonathan Hui
parent ef0940644d
commit 21b971c7e4
2 changed files with 12 additions and 0 deletions
+2
View File
@@ -170,6 +170,7 @@ static inline void clearPendingEvents(void)
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
}
#if !OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
{
(void)aInstance;
@@ -179,6 +180,7 @@ void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
memcpy(aIeeeEui64, &factoryAddress, sizeof(factoryAddress));
}
#endif // OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
void otPlatRadioSetPanId(otInstance *aInstance, uint16_t aPanId)
{
+10
View File
@@ -921,6 +921,16 @@
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0
#endif
/**
* @def OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
*
* Allows to define custom otPlatRadioGetIeeeEui64 function to retrieve EUI-64.
*
*/
#ifndef OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE 0
#endif
/**
* @def OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT
*