File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,15 +17,14 @@ STMSRC=lib
1717FATFSSRC =fatfs
1818CC3KSRC =cc3k
1919DFU =../tools/dfu.py
20- OSC_VALUE =8000000
2120
2221AS = arm-none-eabi-as
2322CC = arm-none-eabi-gcc
2423LD = arm-none-eabi-ld
2524OBJCOPY = arm-none-eabi-objcopy
2625SIZE = arm-none-eabi-size
2726
28- 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 )
27+ 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
2928CFLAGS = -I. -I$(PY_SRC ) -I$(FATFSSRC ) -I$(CMSIS ) -I$(STMSRC ) -Wall -ansi -std=gnu99 $(CFLAGS_CORTEX_M4 )
3029# CFLAGS += -I$(STMOTGSRC) -DUSE_HOST_MODE -DUSE_OTG_MODE
3130
Original file line number Diff line number Diff line change 5757 extern "C" {
5858#endif /* __cplusplus */
5959
60+ // dpgeorge: we include mpconfigport.h here because it contains the settings for the STM
61+ #include "mpconfigport.h"
62+
6063/** @addtogroup Library_configuration_section
6164 * @{
6265 */
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ machine_float_t machine_sqrt(machine_float_t x);
2222
2323// board specific definitions
2424
25+ // choose 1 of these boards
2526//#define PYBOARD
2627#define PYBOARD4
2728//#define STM32F4DISC
29+
30+ #define STM32F40_41xxx
31+ #define USE_STDPERIPH_DRIVER
32+ #define HSE_VALUE (8000000)
You can’t perform that action at this time.
0 commit comments