fix HSE_VALUE

This commit is contained in:
Nicolas Reinecke
2016-01-02 22:11:42 +01:00
parent a657f70a2e
commit 601bd6e7c6
3 changed files with 2 additions and 6 deletions
+1
View File
@@ -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
#============================================================================
+1
View File
@@ -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
#============================================================================
-6
View File
@@ -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"