mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-11 04:57:38 +00:00
freertos: Fix various build errors
This commit fixes various build errors in IDF (and tests) when compiling with SMP FreeRTOS: - Updated usage of xTaskGetIdleTaskHandle() - Disable sysview tracing macros - Update some task snapshot functions - Disabled test_freertos_hooks.c test as vApplicationIdleHook() and vApplicationTickHook() are used.
This commit is contained in:
@@ -4,6 +4,13 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#ifndef CONFIG_FREERTOS_SMP
|
||||
/*
|
||||
Note: We disable this test when using the FreeRTOS SMP kernel as the port will already provide
|
||||
a definition for vApplicationTickHook(). Thus this test cannot be run.
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "freertos/FreeRTOS.h"
|
||||
@@ -84,3 +91,4 @@ TEST_CASE("static task cleanup hook is called based on config", "[freertos]")
|
||||
}
|
||||
|
||||
#endif // CONFIG_FREERTOS_ENABLE_STATIC_TASK_CLEAN_UP
|
||||
#endif // CONFIG_FREERTOS_SMP
|
||||
|
Reference in New Issue
Block a user