Skip to content

Commit

Permalink
fixup! cpu/sam0_common/Makefile.include: add CPU ROM and RAM lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
kYc0o committed Nov 7, 2017
1 parent b3c6c25 commit 5a5ec37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpu/sam0_common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ 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
ROM_LEN ?= 0x40000
RAM_LEN ?= 0x8000
endif

ROM_START_ADDR ?= 0x00000000
Expand All @@ -13,7 +13,7 @@ RAM_START_ADDR ?= 0x20000000
# this CPU implementation doesn't use CMSIS initialization
export CFLAGS += -DDONT_USE_CMSIS_INIT

# For Cortex-M cpu we use the cortexm.ld linker script
# For Cortex-M cpu we use the common cortexm.ld linker script
LINKER_SCRIPT ?= cortexm.ld

# use common periph functions
Expand Down

0 comments on commit 5a5ec37

Please sign in to comment.