瀏覽代碼

MINIMAL_STACK_SIZE and TOTAL_HEAP_SIZE decreased for all platforms to make code simpler

Pavlo Taranov 3 年之前
父節點
當前提交
f3d4bd42fa
共有 1 個文件被更改,包括 2 次插入12 次删除
  1. 2 12
      examples/freertos/FreeRTOSConfig.h

+ 2 - 12
examples/freertos/FreeRTOSConfig.h

@@ -44,12 +44,6 @@
 #include <stdint.h>
 #include <stdint.h>
 extern uint32_t SystemCoreClock;
 extern uint32_t SystemCoreClock;
 
 
-#if defined STM32F1
-	// This is enough for Blinky example.
-	#define configMINIMAL_STACK_SIZE		( ( unsigned short ) 50 )
-	#define configTOTAL_HEAP_SIZE			( ( size_t ) ( 2 * 1024 ) )
-#endif
-
 #if defined STM32L5
 #if defined STM32L5
 	#define configENABLE_TRUSTZONE                   0
 	#define configENABLE_TRUSTZONE                   0
 	#if configENABLE_TRUSTZONE
 	#if configENABLE_TRUSTZONE
@@ -68,12 +62,8 @@ extern uint32_t SystemCoreClock;
 #if !defined USE_CMSIS_RTOS_V2
 #if !defined USE_CMSIS_RTOS_V2
 #define configMAX_PRIORITIES			( 5 )
 #define configMAX_PRIORITIES			( 5 )
 #endif
 #endif
-#if !defined configMINIMAL_STACK_SIZE
-#define configMINIMAL_STACK_SIZE		( ( unsigned short ) 130 )
-#endif
-#if !defined configTOTAL_HEAP_SIZE
-#define configTOTAL_HEAP_SIZE			( ( size_t ) ( 8 * 1024 ) )
-#endif
+#define configMINIMAL_STACK_SIZE		( ( unsigned short ) 50 )
+#define configTOTAL_HEAP_SIZE			( ( size_t ) ( 2 * 1024 ) )
 #define configMAX_TASK_NAME_LEN			( 10 )
 #define configMAX_TASK_NAME_LEN			( 10 )
 #define configUSE_TRACE_FACILITY		1
 #define configUSE_TRACE_FACILITY		1
 #define configUSE_16_BIT_TICKS			0
 #define configUSE_16_BIT_TICKS			0