mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 14:57:38 +00:00
[nrf52840] custom EUI-64 get (#2631)
This commit is contained in:
committed by
Jonathan Hui
parent
ef0940644d
commit
21b971c7e4
@@ -170,6 +170,7 @@ static inline void clearPendingEvents(void)
|
|||||||
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
|
} while (__STREXW(pendingEvents, (unsigned long volatile *)&sPendingEvents));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
|
||||||
void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
|
void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
|
||||||
{
|
{
|
||||||
(void)aInstance;
|
(void)aInstance;
|
||||||
@@ -179,6 +180,7 @@ void otPlatRadioGetIeeeEui64(otInstance *aInstance, uint8_t *aIeeeEui64)
|
|||||||
|
|
||||||
memcpy(aIeeeEui64, &factoryAddress, sizeof(factoryAddress));
|
memcpy(aIeeeEui64, &factoryAddress, sizeof(factoryAddress));
|
||||||
}
|
}
|
||||||
|
#endif // OPENTHREAD_CONFIG_ENABLE_PLATFORM_EUI64_CUSTOM_SOURCE
|
||||||
|
|
||||||
void otPlatRadioSetPanId(otInstance *aInstance, uint16_t aPanId)
|
void otPlatRadioSetPanId(otInstance *aInstance, uint16_t aPanId)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -921,6 +921,16 @@
|
|||||||
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0
|
#define OPENTHREAD_CONFIG_ENABLE_PLATFORM_USEC_TIMER 0
|
||||||
#endif
|
#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
|
* @def OPENTHREAD_CONFIG_ENABLE_AUTO_START_SUPPORT
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user