stm: Put HSE_VALUE and other defines in mpconfigport.h.
mpconfigport.h is now included by stm32f4xx.h so that all STM files have access to these defines.
This commit is contained in:
parent
eb380d7261
commit
d51cfd155c
|
@ -17,7 +17,6 @@ STMSRC=lib
|
|||
FATFSSRC=fatfs
|
||||
CC3KSRC=cc3k
|
||||
DFU=../tools/dfu.py
|
||||
OSC_VALUE=8000000
|
||||
|
||||
AS = arm-none-eabi-as
|
||||
CC = arm-none-eabi-gcc
|
||||
|
@ -25,7 +24,7 @@ LD = arm-none-eabi-ld
|
|||
OBJCOPY = arm-none-eabi-objcopy
|
||||
SIZE = arm-none-eabi-size
|
||||
|
||||
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion -DSTM32F40_41xxx -DUSE_STDPERIPH_DRIVER -DHSE_VALUE=$(OSC_VALUE)
|
||||
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
|
||||
CFLAGS = -I. -I$(PY_SRC) -I$(FATFSSRC) -I$(CMSIS) -I$(STMSRC) -Wall -ansi -std=gnu99 $(CFLAGS_CORTEX_M4)
|
||||
#CFLAGS += -I$(STMOTGSRC) -DUSE_HOST_MODE -DUSE_OTG_MODE
|
||||
|
||||
|
|
|
@ -57,6 +57,9 @@
|
|||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
// dpgeorge: we include mpconfigport.h here because it contains the settings for the STM
|
||||
#include "mpconfigport.h"
|
||||
|
||||
/** @addtogroup Library_configuration_section
|
||||
* @{
|
||||
*/
|
||||
|
|
|
@ -22,6 +22,11 @@ machine_float_t machine_sqrt(machine_float_t x);
|
|||
|
||||
// board specific definitions
|
||||
|
||||
// choose 1 of these boards
|
||||
//#define PYBOARD
|
||||
#define PYBOARD4
|
||||
//#define STM32F4DISC
|
||||
|
||||
#define STM32F40_41xxx
|
||||
#define USE_STDPERIPH_DRIVER
|
||||
#define HSE_VALUE (8000000)
|
||||
|
|
Loading…
Reference in New Issue