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

cpu/stm32_common: add CPU_LINE_ variable

This commit is contained in:
Vincent Dupont 2018-05-07 18:04:32 +02:00
parent 3738acb062
commit 4d7a195d33

View File

@ -23,8 +23,16 @@ export INCLUDES += -I$(RIOTCPU)/stm32_common/include
include $(RIOTCPU)/stm32_common/stm32_mem_lengths.mk
# Get CPU_LINE_ variable
-include $(RIOTCPU)/$(CPU)/stm32_line.mk
CPU_LINE ?= $(shell echo $(CPU_MODEL) | cut -c -9 | tr 'a-z-' 'A-Z_')xx
# Set CFLAGS
export CFLAGS += -D$(CPU_LINE) -DCPU_LINE_$(CPU_LINE)
info-stm32:
@$(COLOR_ECHO) "CPU: $(CPU_MODEL)"
@$(COLOR_ECHO) "\tLine: $(CPU_LINE)"
@$(COLOR_ECHO) "\tPin count:\t$(STM32_PINCOUNT)"
@$(COLOR_ECHO) "\tROM size:\t$(ROM_LEN)"
@$(COLOR_ECHO) "\tRAM size:\t$(RAM_LEN)"