Dramatic memory use improvement

Thx to @3djc !
This commit is contained in:
Raphael Coeffic
2021-07-31 17:31:51 +02:00
parent 4d317c5e33
commit 34c588d9f6
+6 -5
View File
@@ -29,8 +29,9 @@
#define configCPU_CLOCK_HZ ( SystemCoreClock )
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define configMAX_PRIORITIES ( 5 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 )
//#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 75 * 1024 ) )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 30 )
// static memory is used instead
// #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 75 * 1024 ) )
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1
// Use notifications
@@ -39,13 +40,13 @@
#define configUSE_RECURSIVE_MUTEXES 0
#define configUSE_MALLOC_FAILED_HOOK 0
#define configUSE_APPLICATION_TASK_TAG 0
#define configUSE_COUNTING_SEMAPHORES 0 // 1 rco: save some memory?
#define configUSE_COUNTING_SEMAPHORES 0
#define configGENERATE_RUN_TIME_STATS 0
#define configUSE_TIMERS 0
#if !defined(DEBUG)
#define configMAX_TASK_NAME_LEN 1
#define configUSE_TRACE_FACILITY 0 // 1 rco: save some memory?
#define configMAX_TASK_NAME_LEN 4
#define configUSE_TRACE_FACILITY 0
#define configCHECK_FOR_STACK_OVERFLOW 0
#else
#define configMAX_TASK_NAME_LEN 10