mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 04:04:31 +02:00
freertos: don't create timer task if timer APIs are not used
Saves 2496 bytes of heap for the hello-world app on the ESP32, and 4080 bytes of heap on the ESP32-S2 (due to IRAM savings).
This commit is contained in:
@@ -5137,3 +5137,8 @@ TickType_t uxReturn;
|
|||||||
#include "tasks_test_access_functions.h"
|
#include "tasks_test_access_functions.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* If timers.c is not referenced anywhere, don't create the timer task to save RAM */
|
||||||
|
BaseType_t __attribute__((weak)) xTimerCreateTimerTask( void )
|
||||||
|
{
|
||||||
|
return pdPASS;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user