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).
pull/5682/merge
Ivan Grokhotkov 2020-10-02 17:47:55 +02:00
rodzic 001a6be9b1
commit 654124adf0
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -5137,3 +5137,8 @@ TickType_t uxReturn;
#include "tasks_test_access_functions.h"
#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;
}