1 Star 0 Fork 0

wfl/AM32

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
e230makefile.mk 852 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andrew Tridgell 提交于 2024-08-20 08:14 . cleanup makefile build
MCU := E230
PART := GD32E230
TARGETS_$(MCU) := $(call get_targets,$(MCU))
HAL_FOLDER_$(MCU) := $(HAL_FOLDER)/$(call lc,$(MCU))
MCU_$(MCU) := -mfloat-abi=soft -mthumb -mcpu=cortex-m23
LDSCRIPT_$(MCU) := $(wildcard $(HAL_FOLDER_$(MCU))/*.ld)
SRC_BASE_DIR_$(MCU) := \
$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Source \
$(HAL_FOLDER_$(MCU))/Drivers/GD32E23x_standard_peripheral/Source \
$(HAL_FOLDER_$(MCU))/Startup
SRC_DIR_$(MCU) := $(SRC_BASE_DIR_$(MCU)) \
$(HAL_FOLDER_$(MCU))/Src
CFLAGS_$(MCU) += \
-I$(HAL_FOLDER_$(MCU))/Inc \
-I$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Include \
-I$(HAL_FOLDER_$(MCU))/Drivers/CMSIS/Core/Include \
-I$(HAL_FOLDER_$(MCU))/Drivers/GD32E23x_standard_peripheral/Include
CFLAGS_$(MCU) += \
-DGD32$(MCU) \
-D$(PART) \
-DUSE_STDPERIPH_DRIVER
SRC_$(MCU) := $(foreach dir,$(SRC_DIR_$(MCU)),$(wildcard $(dir)/*.[cs]))
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wflwang/AM32.git
git@gitee.com:wflwang/AM32.git
wflwang
AM32
AM32
main

搜索帮助