Dramatic memory use improvement
Thx to @3djc !
This commit is contained in:
@@ -29,8 +29,9 @@
|
|||||||
#define configCPU_CLOCK_HZ ( SystemCoreClock )
|
#define configCPU_CLOCK_HZ ( SystemCoreClock )
|
||||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||||
#define configMAX_PRIORITIES ( 5 )
|
#define configMAX_PRIORITIES ( 5 )
|
||||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 130 )
|
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 30 )
|
||||||
//#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 75 * 1024 ) )
|
// static memory is used instead
|
||||||
|
// #define configTOTAL_HEAP_SIZE ( ( size_t ) ( 75 * 1024 ) )
|
||||||
#define configUSE_16_BIT_TICKS 0
|
#define configUSE_16_BIT_TICKS 0
|
||||||
#define configIDLE_SHOULD_YIELD 1
|
#define configIDLE_SHOULD_YIELD 1
|
||||||
// Use notifications
|
// Use notifications
|
||||||
@@ -39,13 +40,13 @@
|
|||||||
#define configUSE_RECURSIVE_MUTEXES 0
|
#define configUSE_RECURSIVE_MUTEXES 0
|
||||||
#define configUSE_MALLOC_FAILED_HOOK 0
|
#define configUSE_MALLOC_FAILED_HOOK 0
|
||||||
#define configUSE_APPLICATION_TASK_TAG 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 configGENERATE_RUN_TIME_STATS 0
|
||||||
#define configUSE_TIMERS 0
|
#define configUSE_TIMERS 0
|
||||||
|
|
||||||
#if !defined(DEBUG)
|
#if !defined(DEBUG)
|
||||||
#define configMAX_TASK_NAME_LEN 1
|
#define configMAX_TASK_NAME_LEN 4
|
||||||
#define configUSE_TRACE_FACILITY 0 // 1 rco: save some memory?
|
#define configUSE_TRACE_FACILITY 0
|
||||||
#define configCHECK_FOR_STACK_OVERFLOW 0
|
#define configCHECK_FOR_STACK_OVERFLOW 0
|
||||||
#else
|
#else
|
||||||
#define configMAX_TASK_NAME_LEN 10
|
#define configMAX_TASK_NAME_LEN 10
|
||||||
|
|||||||
Reference in New Issue
Block a user