aboutsummaryrefslogtreecommitdiff
path: root/circuitpython/lib/tinyusb/hw/bsp/tm4c123/family.mk
blob: 751076196e7d79657149a3c5fde7f1b1a58f00d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
DEPS_SUBMODULES += hw/mcu/ti

include $(TOP)/$(BOARD_PATH)/board.mk

CFLAGS += \
  -flto \
  -mthumb \
  -mabi=aapcs \
  -mcpu=cortex-m4 \
  -mfloat-abi=hard \
  -mfpu=fpv4-sp-d16 \
  -DCFG_TUSB_MCU=OPT_MCU_TM4C123 \
  -uvectors \
  -DTM4C123GH6PM
  
# mcu driver cause following warnings
CFLAGS += -Wno-error=strict-prototypes -Wno-error=cast-qual

MCU_DIR=hw/mcu/ti/tm4c123xx/

# All source paths should be relative to the top level.
LD_FILE = $(BOARD_PATH)/tm4c123.ld

INC += \
	$(TOP)/$(MCU_DIR)/CMSIS/5.7.0/CMSIS/Include \
	$(TOP)/$(MCU_DIR)/Include/TM4C123 \
	$(TOP)/$(BOARD_PATH)

SRC_C += \
	src/portable/mentor/musb/dcd_musb.c \
	src/portable/mentor/musb/hcd_musb.c \
	$(MCU_DIR)/Source/system_TM4C123.c \
	$(MCU_DIR)/Source/GCC/tm4c123_startup.c

# For freeRTOS port source
FREERTOS_PORT = ARM_CM4F