1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

kinetis: Add KL RAM sizes to kinetis-info.mk

Gives correct information for all KL parts, according to the product
catalog on nxp.com
This commit is contained in:
Joakim Nohlgård 2018-04-24 18:38:27 +02:00 committed by Benjamin Valentin
parent 04ad9ac6b9
commit 945bf114b8

View File

@ -104,6 +104,27 @@ ifeq ($(KINETIS_SERIES),K)
# There seems to be a cap on SRAM_L at 64 kB across the whole K series
KINETIS_SRAM_L_SIZE = 64
endif
else ifeq ($(KINETIS_SERIES),L)
ifeq ($(KINETIS_FAMILY),8)
# KL81, KL82
KINETIS_RAMSIZE = 96
else ifeq ($(KINETIS_SUBFAMILY),7)
# KL17, KL27
ifeq ($(KINETIS_ROMSIZE),256)
KINETIS_RAMSIZE = 32
else
KINETIS_RAMSIZE = $(KINETIS_ROMSIZE)/4
endif
else ifeq ($(KINETIS_FAMILY)$(KINETIS_SUBFAMILY),28)
# KL28
KINETIS_RAMSIZE = 128
else ifeq ($(KINETIS_FAMILY)$(KINETIS_SUBFAMILY),03)
# KL03
KINETIS_RAMSIZE = 2
else
KINETIS_RAMSIZE = $(KINETIS_ROMSIZE)/8
endif
KINETIS_SRAM_L_SIZE = $(KINETIS_RAMSIZE)/4
else ifeq ($(KINETIS_SERIES),W)
KINETIS_RAMSIZE = $(KINETIS_ROMSIZE)/8
ifeq ($(KINETIS_CORE),D)