Skip to content

Commit

Permalink
cpu/msp430_common: add real malloc/free functions
Browse files Browse the repository at this point in the history
For this purpose, adapted AVR libc functions are used. When used, malloc and free functions require 304 additional bytes of code compared to the oneway_malloc module.
  • Loading branch information
gschorcht committed Apr 3, 2019
1 parent ee3efa3 commit 419cedf
Show file tree
Hide file tree
Showing 3 changed files with 464 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cpu/msp430_common/Makefile.include
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
PSEUDOMODULES += msp430_malloc

INCLUDES += -I$(RIOTCPU)/msp430_common/include/

# export the CPU model
MODEL = $(shell echo $(CPU_MODEL) | tr 'a-z' 'A-Z')
export CFLAGS += -DCPU_MODEL_$(MODEL)

export UNDEF += $(BINDIR)/msp430_common/startup.o
export USEMODULE += msp430_common msp430_common_periph periph_common
export USEMODULE += msp430_common msp430_common_periph msp430_malloc periph_common

DEFAULT_MODULE += oneway_malloc

Expand Down
Loading

0 comments on commit 419cedf

Please sign in to comment.