forked from AlkaMotors/AM32-MultiRotor-ESC-firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
f051makefile.mk
38 lines (31 loc) · 1.05 KB
/
f051makefile.mk
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
37
38
TARGETS_F051 := \
FD6288 MP6531 IFLIGHT TMOTOR55 TMOTOR45 HGLRC SISKIN \
DIATONE MAMBA_F40PRO MAMBA_F50PRO MAMBA_F60PRO \
WRAITH32 CRTEENSY_HILARIESC FLYCOLOR HVFLYCOLOR AIKONSINGLE \
SKYSTARS AM32REF BLPWR NEUTRONRC_F051\
HAL_FOLDER_F051 := $(HAL_FOLDER)/f051
MCU_F051 := -mcpu=cortex-m0 -mthumb
LDSCRIPT_F051 := $(HAL_FOLDER_F051)/STM32F051K6TX_FLASH.ld
SRC_DIR_F051 += \
$(HAL_FOLDER_F051)/Startup \
$(HAL_FOLDER_F051)/Src \
$(HAL_FOLDER_F051)/Drivers/STM32F0xx_HAL_Driver/Src
CFLAGS_F051 := \
-I$(HAL_FOLDER_F051)/Inc \
-I$(HAL_FOLDER_F051)/Drivers/STM32F0xx_HAL_Driver/Inc \
-I$(HAL_FOLDER_F051)/Drivers/CMSIS/Include \
-I$(HAL_FOLDER_F051)/Drivers/CMSIS/Device/ST/STM32F0xx/Include
CFLAGS_F051 += \
-DHSE_VALUE=8000000 \
-DSTM32F051x8 \
-DHSE_STARTUP_TIMEOUT=100 \
-DLSE_STARTUP_TIMEOUT=5000 \
-DLSE_VALUE=32768 \
-DDATA_CACHE_ENABLE=0 \
-DINSTRUCTION_CACHE_ENABLE=0 \
-DVDD_VALUE=3300 \
-DLSI_VALUE=40000 \
-DHSI_VALUE=8000000 \
-DUSE_FULL_LL_DRIVER \
-DPREFETCH_ENABLE=1
SRC_F051 := $(foreach dir,$(SRC_DIR_F051),$(wildcard $(dir)/*.[cs]))