mirror of
https://github.com/rene-dev/stmbl.git
synced 2026-09-25 17:40:40 +08:00
fix HSE_VALUE
This commit is contained in:
@@ -71,6 +71,7 @@ SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/misc.c
|
||||
SOURCES += lib/CMSIS/Device/ST/STM32F4xx/Source/startup_stm32f40_41xxx.s
|
||||
|
||||
CPPFLAGS += -DSTM32F40_41xxx
|
||||
CPPFLAGS += -DHSE_VALUE=8000000
|
||||
LDSCRIPT = stm32_flash.ld
|
||||
|
||||
#============================================================================
|
||||
|
||||
@@ -42,6 +42,7 @@ SOURCES += lib/STM32F4xx_StdPeriph_Driver-V1.6.0/src/misc.c
|
||||
SOURCES += lib/CMSIS/Device/ST/STM32F4xx/Source/startup_stm32f40_41xxx.s
|
||||
|
||||
CPPFLAGS += -DSTM32F40_41xxx
|
||||
CPPFLAGS += -DHSE_VALUE=8000000
|
||||
LDSCRIPT = bootloader/stm32_flash.ld
|
||||
|
||||
#============================================================================
|
||||
|
||||
@@ -23,12 +23,6 @@
|
||||
#ifndef __STM32F4xx_CONF_H
|
||||
#define __STM32F4xx_CONF_H
|
||||
|
||||
#if defined (HSE_VALUE)
|
||||
/* Redefine the HSE value; it's equal to 8 MHz on the STM32F4-DISCOVERY Kit */
|
||||
#undef HSE_VALUE
|
||||
#define HSE_VALUE ((uint32_t)8000000)
|
||||
#endif /* HSE_VALUE */
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
/* Uncomment the line below to enable peripheral header file inclusion */
|
||||
#include "stm32f4xx_adc.h"
|
||||
|
||||
Reference in New Issue
Block a user