Skip to content

Commit 408f30c

Browse files
Fix efr32 test_driver build by including the needed headers as they were previously available through the freertos genericPlatformImplementation
1 parent b52a9cc commit 408f30c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/platform/FreeRTOS/SystemTimeSupport.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <lib/support/TimeUtils.h>
2929

3030
#include "FreeRTOS.h"
31+
#include "task.h"
3132

3233
namespace chip {
3334
namespace System {

src/platform/silabs/ConfigurationManagerImpl.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* for Silabs platforms using the Silicon Labs SDK.
2323
*/
2424
/* this file behaves like a config.h, comes first */
25+
#include <cmsis_os2.h>
2526
#include <platform/ConfigurationManager.h>
2627
#include <platform/DiagnosticDataProvider.h>
2728
#include <platform/internal/CHIPDeviceLayerInternal.h>
@@ -304,7 +305,7 @@ void ConfigurationManagerImpl::DoFactoryReset(intptr_t arg)
304305
// When called from an RPC, the following reset occurs before the RPC can respond,
305306
// which breaks tests (because it looks like the RPC hasn't successfully completed).
306307
// Block the task for 500 ms before the reset occurs to allow RPC response to be sent
307-
vTaskDelay(pdMS_TO_TICKS(500));
308+
osDelay(pdMS_TO_TICKS(500));
308309

309310
NVIC_SystemReset();
310311
}

src/platform/silabs/DiagnosticDataProviderImpl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#endif
3131
#include "FreeRTOS.h"
3232
#include "sl_memory_manager.h"
33+
#include "task.h"
3334
#include <inet/InetInterface.h>
3435
#include <lib/support/CHIPMemString.h>
3536

0 commit comments

Comments
 (0)