Skip to content
Snippets Groups Projects
Verified Commit cb3de08d authored by rahix's avatar rahix
Browse files

feat(epicardium): Switch to malloc heap


Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 6a358342
No related branches found
No related tags found
No related merge requests found
...@@ -12,8 +12,10 @@ ...@@ -12,8 +12,10 @@
/* TODO: Adjust this for tickless idle */ /* TODO: Adjust this for tickless idle */
#define configTICK_RATE_HZ ((portTickType)1000) #define configTICK_RATE_HZ ((portTickType)1000)
/* Memory */ /* Memory
#define configTOTAL_HEAP_SIZE ((size_t)(26 * 1024)) *
* Heap is managed by libc (heap_3.c).
*/
#define configMINIMAL_STACK_SIZE ((unsigned short)128) #define configMINIMAL_STACK_SIZE ((unsigned short)128)
#define configMAX_PRIORITIES 5 #define configMAX_PRIORITIES 5
......
...@@ -48,6 +48,7 @@ api_dispatcher_lib = static_library( ...@@ -48,6 +48,7 @@ api_dispatcher_lib = static_library(
freertos = static_library( freertos = static_library(
'freertos', 'freertos',
freertos_sources, freertos_sources,
freertos_heap3,
dependencies: periphdriver, dependencies: periphdriver,
include_directories: [ include_directories: [
freertos_includes, freertos_includes,
......
...@@ -3,6 +3,7 @@ name = 'hello-freertos' ...@@ -3,6 +3,7 @@ name = 'hello-freertos'
freertos = static_library( freertos = static_library(
'freertos', 'freertos',
freertos_sources, freertos_sources,
freertos_heap2,
freertos_cli_sources, freertos_cli_sources,
dependencies: periphdriver, dependencies: periphdriver,
include_directories: [ include_directories: [
......
...@@ -13,5 +13,12 @@ freertos_sources = files( ...@@ -13,5 +13,12 @@ freertos_sources = files(
'./Source/timers.c', './Source/timers.c',
'./Source/portable/GCC/ARM_CM4F/port.c', './Source/portable/GCC/ARM_CM4F/port.c',
)
freertos_heap2 = files(
'./Source/portable/MemMang/heap_2.c', './Source/portable/MemMang/heap_2.c',
) )
freertos_heap3 = files(
'./Source/portable/MemMang/heap_3.c',
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment