Skip to content

Commit

Permalink
Make STM32F1_POG as default type when Makefile.CMSIS is used
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchain committed May 14, 2019
1 parent c8a345a commit 2a6db2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions Config.h
Expand Up @@ -44,11 +44,13 @@
// For the original Arduino Due pin layout
// #define ARDUINO_DUE_PAPA

#if defined(STM32F1)
// For the SQ6POG board
#define STM32F1_POG
#else
// For the ZUM V1.0 and V1.0.1 boards pin layout
#define ARDUINO_DUE_ZUM_V10

// For the SQ6POG board
// #define STM32F1_POG
#endif

// For the SP8NTH board
// #define ARDUINO_DUE_NTH
Expand Down
2 changes: 1 addition & 1 deletion Makefile.CMSIS
Expand Up @@ -65,7 +65,7 @@ COMMON_FLAGS =-mthumb -mlittle-endian -mcpu=$(MCPU)
COMMON_FLAGS+= -Wall
COMMON_FLAGS+= -I. -I$(CMSISDIR)/Include -I$(CMSISDIR)/Device/ST/STM32F1xx/Include -I$(SYSDIR)
COMMON_FLAGS+= $(addprefix -I,$(INCDIR))
COMMON_FLAGS+= -D$(MCU) -DMADEBYMAKEFILE
COMMON_FLAGS+= -D$(MCU) -DMADEBYMAKEFILE -DSTM32F1
COMMON_FLAGS+= -Os -flto -ffunction-sections -fdata-sections
COMMON_FLAGS+= -g
# Assembler flags
Expand Down

0 comments on commit 2a6db2a

Please sign in to comment.