summaryrefslogtreecommitdiff
path: root/examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-12-05 12:09:41 +0700
committerhathach <[email protected]>2022-12-05 12:09:41 +0700
commitde5a67bf3b8737a580539c5fbc6a054c90e4a084 (patch)
tree42ecb08765999aa78d2dfd8a9b862650233b88e7 /examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
parent52261ac02dfbe58f35f959be852f0949cc0744cd (diff)
clean osal_freertos, update freertos examples to work with configSUPPORT_DYNAMIC_ALLOCATION only
note: for example to build with configSUPPORT_STATIC_ALLOCATION = 0, one of heap_n.c must be included in makefile/cmake
Diffstat (limited to 'examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h')
-rw-r--r--examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
index 6a3630dbc..968c59749 100644
--- a/examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
+++ b/examples/device/cdc_msc_freertos/src/FreeRTOSConfig/FreeRTOSConfig.h
@@ -69,7 +69,7 @@
#define configTICK_RATE_HZ ( 1000 )
#define configMAX_PRIORITIES ( 5 )
#define configMINIMAL_STACK_SIZE ( 128 )
-#define configTOTAL_HEAP_SIZE ( 0*1024 ) // dynamic is not used
+#define configTOTAL_HEAP_SIZE ( configSUPPORT_DYNAMIC_ALLOCATION*4*1024 )
#define configMAX_TASK_NAME_LEN 16
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1