Skip to content
Snippets Groups Projects
Commit 4c86d950 authored by kYc0o's avatar kYc0o
Browse files

cpu/sam0_common/Makefile.include: add CPU ROM and RAM lengths

parent d25fd647
No related branches found
No related tags found
No related merge requests found
# Define the CPU family so we can differentiate between them in the code # Define the CPU family so we can differentiate between them in the code
CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_') CFLAGS += -DCPU_FAM_$(shell echo $(CPU_FAM) | tr 'a-z-' 'A-Z_')
# Set ROM and RAM lengths according to CPU model
ifneq (,$(filter samd21g18a samd21j18a saml21j18b saml21j18a samr21g18a,$(CPU_MODEL)))
ROM_LEN ?= 0x40000
RAM_LEN ?= 0x8000
endif
ROM_START_ADDR ?= 0x00000000
RAM_START_ADDR ?= 0x20000000
# this CPU implementation doesn't use CMSIS initialization # this CPU implementation doesn't use CMSIS initialization
export CFLAGS += -DDONT_USE_CMSIS_INIT export CFLAGS += -DDONT_USE_CMSIS_INIT
# for the sam[drl] CPUs we hold all linkerscripts in the sam0 common folder # For Cortex-M cpu we use the common cortexm.ld linker script
export LINKFLAGS += -L$(RIOTCPU)/sam0_common/ldscripts LINKER_SCRIPT ?= cortexm.ld
# use common periph functions # use common periph functions
USEMODULE += periph_common USEMODULE += periph_common
......
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