makefile, part var
This commit is contained in:
parent
c2dd21345b
commit
16d262897b
1 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
# target
|
# target
|
||||||
######################################
|
######################################
|
||||||
TARGET = blinky
|
TARGET = blinky
|
||||||
|
PART = EFR32BG22C224F512GM32
|
||||||
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
|
|
@ -63,7 +64,7 @@ CPU = \
|
||||||
-imacros sl_gcc_preinclude.h \
|
-imacros sl_gcc_preinclude.h \
|
||||||
-mcmse
|
-mcmse
|
||||||
|
|
||||||
DEFINES = -DEFR32BG22C224F512GM32
|
DEFINES = -D$(PART)
|
||||||
|
|
||||||
# fpu
|
# fpu
|
||||||
FPU =
|
FPU =
|
||||||
|
|
@ -90,7 +91,7 @@ CFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Generate dependency information <<<<<<<<<<<<<<<<<<<<<<< check
|
# Generate dependency information
|
||||||
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)"
|
CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)"
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -161,6 +162,9 @@ $(BUILD_DIR):
|
||||||
# Program
|
# Program
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
|
flash: $(BUILD_DIR)/$(TARGET).bin
|
||||||
|
pyocd load --target $(PART) $(BUILD_DIR)/$(TARGET).bin
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# clean up
|
# clean up
|
||||||
#######################################
|
#######################################
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue