Skip to content

Commit 1df3d1a

Browse files
committed
Copy the memory manager heap_4.c from the FreeRTOS distribution to the InfiniTime project codebase. This will allow to implement custom functionalities that are not available in the original implementation.
1 parent 020a7fd commit 1df3d1a

2 files changed

Lines changed: 449 additions & 1 deletion

File tree

src/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ set(SDK_SOURCE_FILES
4646
# FreeRTOS
4747
${NRF5_SDK_PATH}/external/freertos/source/croutine.c
4848
${NRF5_SDK_PATH}/external/freertos/source/event_groups.c
49-
${NRF5_SDK_PATH}/external/freertos/source/portable/MemMang/heap_4.c
5049
${NRF5_SDK_PATH}/external/freertos/source/list.c
5150
${NRF5_SDK_PATH}/external/freertos/source/queue.c
5251
${NRF5_SDK_PATH}/external/freertos/source/stream_buffer.c
@@ -368,6 +367,7 @@ list(APPEND IMAGE_FILES
368367
displayapp/icons/battery/batteryicon.c
369368
)
370369
list(APPEND SOURCE_FILES
370+
FreeRTOS/heap_4_infinitime.c
371371
BootloaderVersion.cpp
372372
logging/NrfLogger.cpp
373373
displayapp/DisplayApp.cpp
@@ -496,6 +496,8 @@ list(APPEND SOURCE_FILES
496496
)
497497

498498
list(APPEND RECOVERY_SOURCE_FILES
499+
FreeRTOS/heap_4_infinitime.c
500+
499501
BootloaderVersion.cpp
500502
logging/NrfLogger.cpp
501503
displayapp/DisplayAppRecovery.cpp
@@ -558,6 +560,8 @@ list(APPEND RECOVERY_SOURCE_FILES
558560
)
559561

560562
list(APPEND RECOVERYLOADER_SOURCE_FILES
563+
FreeRTOS/heap_4_infinitime.c
564+
561565
# FreeRTOS
562566
FreeRTOS/port.c
563567
FreeRTOS/port_cmsis_systick.c

0 commit comments

Comments
 (0)