Skip to content

Commit

Permalink
Merge pull request #513 from pablogs9/feature/mem_management
Browse files Browse the repository at this point in the history
Heap management options
  • Loading branch information
ataffanel authored Dec 2, 2019
2 parents 05315e2 + b7b88a2 commit 1e6f2c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ VPATH += $(LIB)/vl53l1/core/src
VPATH += $(PORT)
PORT_OBJ = port.o
VPATH += $(FREERTOS)/portable/MemMang
MEMMANG_OBJ = heap_4.o
MEMMANG_OBJ ?= heap_4.o

VPATH += $(FREERTOS)
FREERTOS_OBJ = list.o tasks.o queue.o timers.o $(MEMMANG_OBJ)
Expand Down
4 changes: 3 additions & 1 deletion src/config/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
#define CONFIG_BLOCK_ADDRESS (2048 * (64-1))
#define MCU_ID_ADDRESS 0x1FFF7A10
#define MCU_FLASH_SIZE_ADDRESS 0x1FFF7A22
#define FREERTOS_HEAP_SIZE 40000
#ifndef FREERTOS_HEAP_SIZE
#define FREERTOS_HEAP_SIZE 40000
#endif
#define FREERTOS_MIN_STACK_SIZE 150 // M4-FPU register setup is bigger so stack needs to be bigger
#define FREERTOS_MCU_CLOCK_HZ 168000000

Expand Down

0 comments on commit 1e6f2c3

Please sign in to comment.