nrf5/boards: Updating makefiles to use system.c files based on sub-variant of mcu.
This commit is contained in:
parent
721065b307
commit
4f04eed4c5
@ -63,7 +63,7 @@ INC += -I./hal/$(MCU_VARIANT)
|
|||||||
INC += -I./drivers/display
|
INC += -I./drivers/display
|
||||||
INC += -I../lib/mp-readline
|
INC += -I../lib/mp-readline
|
||||||
|
|
||||||
NRF_DEFINES = -D$(MCU_VARIANT_UPPER)
|
NRF_DEFINES += -D$(MCU_VARIANT_UPPER)
|
||||||
NRF_DEFINES += -DCONFIG_GPIO_AS_PINRESET
|
NRF_DEFINES += -DCONFIG_GPIO_AS_PINRESET
|
||||||
|
|
||||||
CFLAGS_CORTEX_M = -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion
|
CFLAGS_CORTEX_M = -mthumb -mabi=aapcs -fsingle-precision-constant -Wdouble-promotion
|
||||||
@ -159,7 +159,7 @@ DRIVERS_SRC_C += $(addprefix drivers/,\
|
|||||||
#ifeq ($(SD), )
|
#ifeq ($(SD), )
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
device/$(MCU_VARIANT)/system_$(MCU_VARIANT).c \
|
device/$(MCU_VARIANT)/system_$(MCU_SUB_VARIANT).c \
|
||||||
|
|
||||||
SRC_S = \
|
SRC_S = \
|
||||||
device/$(MCU_VARIANT)/startup_$(MCU_VARIANT).s \
|
device/$(MCU_VARIANT)/startup_$(MCU_VARIANT).s \
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
MCU_SERIES = m0
|
MCU_SERIES = m0
|
||||||
MCU_VARIANT = nrf51
|
MCU_VARIANT = nrf51
|
||||||
LD_FILE = boards/nrf51822_aa.ld
|
MCU_SUB_VARIANT = nrf51822
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_aa.ld
|
||||||
FLASHER = pyocd
|
FLASHER = pyocd
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
MCU_SERIES = m0
|
MCU_SERIES = m0
|
||||||
MCU_VARIANT = nrf51
|
MCU_VARIANT = nrf51
|
||||||
LD_FILE = boards/nrf51822_aa.ld
|
MCU_SUB_VARIANT = nrf51822
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_aa.ld
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
MCU_SERIES = m0
|
MCU_SERIES = m0
|
||||||
MCU_VARIANT = nrf51
|
MCU_VARIANT = nrf51
|
||||||
LD_FILE = boards/nrf51822_aa.ld
|
MCU_SUB_VARIANT = nrf51822
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_aa.ld
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MCU_SERIES = m0
|
MCU_SERIES = m0
|
||||||
MCU_VARIANT = nrf51
|
MCU_VARIANT = nrf51
|
||||||
LD_FILE = boards/nrf51822_ac.ld
|
MCU_SUB_VARIANT = nrf51822
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_ac.ld
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
MCU_SERIES = m0
|
MCU_SERIES = m0
|
||||||
MCU_VARIANT = nrf51
|
MCU_VARIANT = nrf51
|
||||||
LD_FILE = boards/nrf51822_ac.ld
|
MCU_SUB_VARIANT = nrf51822
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_ac.ld
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
MCU_SERIES = m4
|
MCU_SERIES = m4
|
||||||
MCU_VARIANT = nrf52
|
MCU_VARIANT = nrf52
|
||||||
LD_FILE = boards/nrf52832_aa.ld
|
MCU_SUB_VARIANT = nrf52832
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_aa.ld
|
||||||
|
|
||||||
|
NRF_DEFINES += -DNRF52832_XXAA
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
MCU_SERIES = m4
|
MCU_SERIES = m4
|
||||||
MCU_VARIANT = nrf52
|
MCU_VARIANT = nrf52
|
||||||
LD_FILE = boards/nrf52840_aa.ld
|
MCU_SUB_VARIANT = nrf52840
|
||||||
|
LD_FILE = boards/$(MCU_SUB_VARIANT)_aa.ld
|
||||||
|
|
||||||
|
NRF_DEFINES += -DNRF52840_XXAA
|
||||||
|
Loading…
Reference in New Issue
Block a user