mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
e5e73ed76c
move hw/cmsis to hw/mcu/nordic since only nrf uses it.
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
CFLAGS += \
|
|
-mthumb \
|
|
-mabi=aapcs \
|
|
-mcpu=cortex-m4 \
|
|
-mfloat-abi=hard \
|
|
-mfpu=fpv4-sp-d16 \
|
|
-DNRF52840_XXAA \
|
|
-DCONFIG_GPIO_AS_PINRESET \
|
|
-DCFG_TUSB_MCU=OPT_MCU_NRF5X
|
|
|
|
# nrfx issue undef _ARMCC_VERSION usage https://github.com/NordicSemiconductor/nrfx/issues/49
|
|
CFLAGS += -Wno-error=undef
|
|
|
|
# All source paths should be relative to the top level.
|
|
LD_FILE = hw/mcu/nordic/nrfx/mdk/nrf52840_xxaa.ld
|
|
|
|
LDFLAGS += -L$(TOP)/hw/mcu/nordic/nrfx/mdk
|
|
|
|
SRC_C += \
|
|
hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c \
|
|
hw/mcu/nordic/nrfx/mdk/system_nrf52840.c \
|
|
|
|
INC += \
|
|
$(TOP)/hw/mcu/nordic/cmsis/Include \
|
|
$(TOP)/hw/mcu/nordic \
|
|
$(TOP)/hw/mcu/nordic/nrfx \
|
|
$(TOP)/hw/mcu/nordic/nrfx/mdk \
|
|
$(TOP)/hw/mcu/nordic/nrfx/hal \
|
|
$(TOP)/hw/mcu/nordic/nrfx/drivers/include \
|
|
$(TOP)/hw/mcu/nordic/nrfx/drivers/src \
|
|
|
|
SRC_S += hw/mcu/nordic/nrfx/mdk/gcc_startup_nrf52840.S
|
|
|
|
ASFLAGS += -D__HEAP_SIZE=0
|
|
|
|
# For TinyUSB port source
|
|
VENDOR = nordic
|
|
CHIP_FAMILY = nrf5x
|
|
|
|
# For freeRTOS port source
|
|
FREERTOS_PORT = ARM_CM4F
|
|
|
|
# For flash-jlink target
|
|
JLINK_DEVICE = nRF52840_xxAA
|
|
JLINK_IF = swd
|
|
|
|
# flash using jlink
|
|
flash: flash-jlink
|