forked from am32-firmware/AM32
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathe230makefile.mk
More file actions
28 lines (19 loc) · 719 Bytes
/
e230makefile.mk
File metadata and controls
28 lines (19 loc) · 719 Bytes
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
TARGETS_E230 := GD32DEV_A_E230\
HAL_FOLDER_E230 := $(HAL_FOLDER)/e230
MCU_E230 := -mcpu=cortex-m23 -mthumb -fsigned-char
LDSCRIPT_E230 := $(HAL_FOLDER_E230)/GD32E230K8_FLASH.ld
SRC_DIR_E230 := \
$(HAL_FOLDER_E230)/Src \
$(HAL_FOLDER_E230)/Drivers/CMSIS/Source\
$(HAL_FOLDER_E230)/Drivers/GD32E23x_standard_peripheral/Source \
$(HAL_FOLDER_E230)/Startup
CFLAGS_E230 += \
-I$(HAL_FOLDER_E230)/Inc \
-I$(HAL_FOLDER_E230)/Drivers/CMSIS/Include \
-I$(HAL_FOLDER_E230)/Drivers/CMSIS/Core/Include \
-I$(HAL_FOLDER_E230)/Drivers/GD32E23x_standard_peripheral/Include
CFLAGS_E230 += \
-DGD32E230 \
-DGD32E23x \
-DUSE_STDPERIPH_DRIVER
SRC_E230 := $(foreach dir,$(SRC_DIR_E230),$(wildcard $(dir)/*.[cs]))