diff --git a/Makefile b/Makefile index 174610b6..f48aa7c6 100644 --- a/Makefile +++ b/Makefile @@ -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 #============================================================================ diff --git a/bootloader/Makefile b/bootloader/Makefile index 32b85a94..7dc7bfe5 100644 --- a/bootloader/Makefile +++ b/bootloader/Makefile @@ -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 #============================================================================ diff --git a/inc/stm32f4xx_conf.h b/inc/stm32f4xx_conf.h index 74447a8f..b81ad186 100644 --- a/inc/stm32f4xx_conf.h +++ b/inc/stm32f4xx_conf.h @@ -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"