mirror of
https://github.com/espressif/openthread.git
synced 2026-08-22 10:29:52 +00:00
[ci] test with time sync and header ie (#3514)
This commit adds the missing test with ie present by enabling TIME_SYNC feature, so that IE code are covered.
This commit is contained in:
@@ -571,4 +571,20 @@ void otPlatSettingsWipe(otInstance *aInstance)
|
||||
(void)aInstance;
|
||||
}
|
||||
|
||||
#if OPENTHREAD_CONFIG_ENABLE_TIME_SYNC
|
||||
uint64_t otPlatTimeGet(void)
|
||||
{
|
||||
struct timeval tv;
|
||||
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
return (uint64_t)tv.tv_sec * 1000000 + (uint64_t)tv.tv_usec;
|
||||
}
|
||||
|
||||
uint16_t otPlatTimeGetXtalAccuracy(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#endif // OPENTHREAD_CONFIG_ENABLE_TIME_SYNC
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user