update mm32sdk with idndef for SYSCLK_FREQ_XXMHz and SYSCLK_HSI_XXMHz

add HSE_VALUE define for each board with 8mhz, 12mhz accordingly
This commit is contained in:
hathach
2023-03-17 19:46:22 +07:00
parent b3ecf82196
commit 1ed04ad05d
4 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
CFLAGS += \
-DHSE_VALUE=8000000
LD_FILE = $(BOARD_PATH)/flash.ld
SRC_S += $(SDK_DIR)/mm32f327x/MM32F327x/Source/GCC_StartAsm/startup_mm32m3ux_u_gcc.S

View File

@@ -1,6 +1,10 @@
CFLAGS += \
-DHSE_VALUE=8000000
LD_FILE = $(BOARD_PATH)/flash.ld
SRC_S += $(SDK_DIR)/mm32f327x/MM32F327x/Source/GCC_StartAsm/startup_mm32m3ux_u_gcc.S
# For flash-jlink target
#JLINK_DEVICE = stm32f411ve

View File

@@ -1,3 +1,6 @@
CFLAGS += \
-DHSE_VALUE=12000000
LD_FILE = $(BOARD_PATH)/flash.ld
SRC_S += $(SDK_DIR)/mm32f327x/MM32F327x/Source/GCC_StartAsm/startup_mm32m3ux_u_gcc.S