summaryrefslogtreecommitdiff
path: root/hw/bsp
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-03-17 19:46:22 +0700
committerhathach <[email protected]>2023-03-17 19:46:22 +0700
commit1ed04ad05d1c44ea2821173cadd7c3ea871f4610 (patch)
treed51a872f5ef2600999f371512a8bab17c658ee3c /hw/bsp
parentb3ecf82196f09ca26161d63dc15c4c3aec6ae57d (diff)
update mm32sdk with idndef for SYSCLK_FREQ_XXMHz and SYSCLK_HSI_XXMHz
add HSE_VALUE define for each board with 8mhz, 12mhz accordingly
Diffstat (limited to 'hw/bsp')
-rw-r--r--hw/bsp/mm32/boards/mm32f327x_bluepillplus/board.mk3
-rw-r--r--hw/bsp/mm32/boards/mm32f327x_mb39/board.mk4
-rw-r--r--hw/bsp/mm32/boards/mm32f327x_pitaya_lite/board.mk3
3 files changed, 10 insertions, 0 deletions
diff --git a/hw/bsp/mm32/boards/mm32f327x_bluepillplus/board.mk b/hw/bsp/mm32/boards/mm32f327x_bluepillplus/board.mk
index b7663926f..bda3daf91 100644
--- a/hw/bsp/mm32/boards/mm32f327x_bluepillplus/board.mk
+++ b/hw/bsp/mm32/boards/mm32f327x_bluepillplus/board.mk
@@ -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
diff --git a/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk b/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
index b7663926f..a0d92d1c7 100644
--- a/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
+++ b/hw/bsp/mm32/boards/mm32f327x_mb39/board.mk
@@ -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
diff --git a/hw/bsp/mm32/boards/mm32f327x_pitaya_lite/board.mk b/hw/bsp/mm32/boards/mm32f327x_pitaya_lite/board.mk
index fbf0322c1..a778e749f 100644
--- a/hw/bsp/mm32/boards/mm32f327x_pitaya_lite/board.mk
+++ b/hw/bsp/mm32/boards/mm32f327x_pitaya_lite/board.mk
@@ -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