Просмотр исходного кода

Merge pull request #235 from hathach/develop

close #204 define HSE_VALUE in _hal_conf instead of board.mk
Ha Thach 6 лет назад
Родитель
Сommit
fc7f6f0e1e

+ 0 - 1
hw/bsp/feather_stm32f405/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F405xx \
-  -DHSE_VALUE=12000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F4
 
 ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F4xx_HAL_Driver

+ 0 - 1
hw/bsp/pyboardv11/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F405xx \
-  -DHSE_VALUE=12000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F4
 
 ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F4xx_HAL_Driver

+ 0 - 1
hw/bsp/stm32f070rbnucleo/board.mk

@@ -5,7 +5,6 @@ CFLAGS += \
   -mcpu=cortex-m0 \
   -mfloat-abi=soft \
   -nostdlib -nostartfiles \
-  -DHSE_VALUE=8000000 \
   -DSTM32F070xB \
   -DCFG_EXAMPLE_MSC_READONLY \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F0

+ 0 - 1
hw/bsp/stm32f072disco/board.mk

@@ -6,7 +6,6 @@ CFLAGS += \
   -mfloat-abi=soft \
   -nostdlib -nostartfiles \
   -DSTM32F072xB \
-  -DHSE_VALUE=8000000 \
   -DCFG_EXAMPLE_MSC_READONLY \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F0
 

+ 0 - 1
hw/bsp/stm32f103bluepill/board.mk

@@ -6,7 +6,6 @@ CFLAGS += \
   -mfloat-abi=soft \
   -nostdlib -nostartfiles \
   -DSTM32F103xB \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F1
 
 # mcu driver cause following warnings

+ 0 - 1
hw/bsp/stm32f207nucleo/board.mk

@@ -6,7 +6,6 @@ CFLAGS += \
   -mfloat-abi=soft \
   -nostdlib -nostartfiles \
   -DSTM32F207xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F2
 
 # mcu driver cause following warnings

+ 0 - 1
hw/bsp/stm32f303disco/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F303xC \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F3
 
 # mcu driver cause following warnings

+ 0 - 1
hw/bsp/stm32f407disco/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F407xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F4
 
 ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F4xx_HAL_Driver

+ 0 - 1
hw/bsp/stm32f411disco/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F411xE \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F4
 
 ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F4xx_HAL_Driver

+ 0 - 1
hw/bsp/stm32f412disco/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F412Zx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F4
 
 # mcu driver cause following warnings

+ 0 - 1
hw/bsp/stm32f767nucleo/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv5-d16 \
   -nostdlib -nostartfiles \
   -DSTM32F767xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32F7
 
 # mcu driver cause following warnings

+ 0 - 1
hw/bsp/stm32h743nucleo/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv5-d16 \
   -nostdlib -nostartfiles \
   -DSTM32H743xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32H7
 
 # mcu driver cause following warnings

+ 1 - 1
hw/bsp/stm32h743nucleo/stm32h7xx_hal_conf.h

@@ -111,7 +111,7 @@
   *        (when HSE is used as system clock source, directly or through the PLL).
   */
 #if !defined  (HSE_VALUE)
-#define HSE_VALUE    ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
+#define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
 #endif /* HSE_VALUE */
 
 #if !defined  (HSE_STARTUP_TIMEOUT)

+ 0 - 1
hw/bsp/stm32l0538disco/board.mk

@@ -6,7 +6,6 @@ CFLAGS += \
   -mfloat-abi=soft \
   -nostdlib -nostartfiles \
   -DSTM32L053xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_EXAMPLE_MSC_READONLY \
   -DCFG_TUSB_MCU=OPT_MCU_STM32L0
 

+ 0 - 1
hw/bsp/stm32l476disco/board.mk

@@ -7,7 +7,6 @@ CFLAGS += \
   -mfpu=fpv4-sp-d16 \
   -nostdlib -nostartfiles \
   -DSTM32L476xx \
-  -DHSE_VALUE=8000000 \
   -DCFG_TUSB_MCU=OPT_MCU_STM32L4
 
 ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32L4xx_HAL_Driver