This commit is contained in:
hathach 2019-05-14 13:31:12 +07:00
parent 910a94e9ca
commit 62f0eb16d6
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
4 changed files with 32 additions and 34 deletions

View File

@ -1,13 +1,11 @@
CFLAGS += \ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_SAMD21 \ -DCONF_DFLL_OVERWRITE_CALIBRATION=0 \
-DCONF_DFLL_OVERWRITE_CALIBRATION=0 \ -D__SAMD21G18A__ \
-D__SAMD21G18A__ \ -mthumb \
-mthumb \ -mabi=aapcs-linux \
-mabi=aapcs-linux \ -mcpu=cortex-m0plus \
-mcpu=cortex-m0plus \ -nostdlib -nostartfiles \
-msoft-float \ -DCFG_TUSB_MCU=OPT_MCU_SAMD21
-mfloat-abi=soft \
-nostdlib -nostartfiles
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = hw/bsp/metro_m0_express/samd21g18a_flash.ld LD_FILE = hw/bsp/metro_m0_express/samd21g18a_flash.ld

View File

@ -1,12 +1,12 @@
CFLAGS += \ CFLAGS += \
-DCFG_TUSB_MCU=OPT_MCU_SAMD51 \ -D__SAMD51J19A__ \
-D__SAMD51J19A__ \ -mthumb \
-mthumb \ -mabi=aapcs-linux \
-mabi=aapcs-linux \ -mcpu=cortex-m4 \
-mcpu=cortex-m4 \ -mfloat-abi=hard \
-mfloat-abi=hard \ -mfpu=fpv4-sp-d16 \
-mfpu=fpv4-sp-d16 \ -nostdlib -nostartfiles \
-nostdlib -nostartfiles -DCFG_TUSB_MCU=OPT_MCU_SAMD51
CFLAGS += -Wno-error=undef CFLAGS += -Wno-error=undef

View File

@ -1,12 +1,12 @@
CFLAGS += \ CFLAGS += \
-mthumb \ -mthumb \
-mabi=aapcs \ -mabi=aapcs \
-mcpu=cortex-m4 \ -mcpu=cortex-m4 \
-mfloat-abi=hard \ -mfloat-abi=hard \
-mfpu=fpv4-sp-d16 \ -mfpu=fpv4-sp-d16 \
-DCFG_TUSB_MCU=OPT_MCU_NRF5X \ -DNRF52840_XXAA \
-DNRF52840_XXAA \ -DCONFIG_GPIO_AS_PINRESET \
-DCONFIG_GPIO_AS_PINRESET -DCFG_TUSB_MCU=OPT_MCU_NRF5X
# nrfx issue undef _ARMCC_VERSION usage https://github.com/NordicSemiconductor/nrfx/issues/49 # nrfx issue undef _ARMCC_VERSION usage https://github.com/NordicSemiconductor/nrfx/issues/49
CFLAGS += -Wno-error=undef CFLAGS += -Wno-error=undef

View File

@ -1,13 +1,13 @@
CFLAGS += \ CFLAGS += \
-DHSE_VALUE=8000000 \ -DHSE_VALUE=8000000 \
-DCFG_TUSB_MCU=OPT_MCU_STM32F4 \ -DSTM32F407xx \
-DSTM32F407xx \ -mthumb \
-mthumb \ -mabi=aapcs-linux \
-mabi=aapcs-linux \ -mcpu=cortex-m4 \
-mcpu=cortex-m4 \ -mfloat-abi=hard \
-mfloat-abi=hard \ -mfpu=fpv4-sp-d16 \
-mfpu=fpv4-sp-d16 \ -nostdlib -nostartfiles \
-nostdlib -nostartfiles -DCFG_TUSB_MCU=OPT_MCU_STM32F4
# All source paths should be relative to the top level. # All source paths should be relative to the top level.
LD_FILE = hw/bsp/stm32f407g_disc1/STM32F407VGTx_FLASH.ld LD_FILE = hw/bsp/stm32f407g_disc1/STM32F407VGTx_FLASH.ld