Skip to content

Commit c0f75b2

Browse files
committed
change comment style
1 parent 98271c9 commit c0f75b2

File tree

1 file changed

+25
-31
lines changed

1 file changed

+25
-31
lines changed

Makefile

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#******************************************************************************
1+
#------------------------------------------------------------------------------
22
# CONFIGURE
3-
# - SDK_PATH : path to SDK directory
3+
# - SDK_PATH : path to SDK directory
44
#
5-
# - SD_NAME : e.g s132, s140
5+
# - SD_NAME : e.g s132, s140
66
# - SD_VERSION : SoftDevice version e.g 6.0.0
7-
# - SD_HEX : to bootloader hex binary
8-
#******************************************************************************
7+
# - SD_HEX : to bootloader hex binary
8+
#------------------------------------------------------------------------------
99

1010
SDK_PATH = lib/sdk/components
1111
SDK11_PATH = lib/sdk11/components
@@ -31,9 +31,9 @@ OUT_FILE = $(BOARD)_bootloader-$(GIT_VERSION)
3131
# merged file = compiled + sd
3232
MERGED_FILE = $(OUT_FILE)_$(SD_NAME)_$(SD_VERSION)
3333

34-
#******************************************************************************
34+
#------------------------------------------------------------------------------
3535
# Tool configure
36-
#******************************************************************************
36+
#------------------------------------------------------------------------------
3737

3838
# Toolchain commands
3939
# Should be added to your PATH
@@ -88,9 +88,9 @@ else
8888
$(error Sub Variant $(MCU_SUB_VARIANT) is unknown)
8989
endif
9090

91-
#******************************************************************************
91+
#------------------------------------------------------------------------------
9292
# SOURCE FILES
93-
#******************************************************************************
93+
#------------------------------------------------------------------------------
9494

9595
# all files in src
9696
C_SRC += $(wildcard src/*.c)
@@ -110,11 +110,9 @@ C_SRC += $(SDK11_PATH)/libraries/bootloader_dfu/bootloader_util.c
110110
C_SRC += $(SDK11_PATH)/libraries/bootloader_dfu/dfu_transport_serial.c
111111
C_SRC += $(SDK11_PATH)/libraries/bootloader_dfu/dfu_transport_ble.c
112112
C_SRC += $(SDK11_PATH)/libraries/bootloader_dfu/dfu_single_bank.c
113-
114-
C_SRC += $(SDK11_PATH)/drivers_nrf/pstorage/pstorage_raw.c
115-
116113
C_SRC += $(SDK11_PATH)/ble/ble_services/ble_dfu/ble_dfu.c
117114
C_SRC += $(SDK11_PATH)/ble/ble_services/ble_dis/ble_dis.c
115+
C_SRC += $(SDK11_PATH)/drivers_nrf/pstorage/pstorage_raw.c
118116

119117
# Latest SDK files: peripheral drivers
120118
C_SRC += $(SDK_PATH)/libraries/timer/app_timer.c
@@ -155,14 +153,14 @@ C_SRC += $(TUSB_PATH)/tusb.c
155153
endif
156154

157155

158-
#******************************************************************************
156+
#------------------------------------------------------------------------------
159157
# Assembly Files
160-
#******************************************************************************
158+
#------------------------------------------------------------------------------
161159
ASM_SRC = $(NRFX_PATH)/mdk/gcc_startup_$(MCU_SUB_VARIANT).S
162160

163-
#******************************************************************************
161+
#------------------------------------------------------------------------------
164162
# INCLUDE PATH
165-
#******************************************************************************
163+
#------------------------------------------------------------------------------
166164

167165
# src
168166
IPATH += src
@@ -202,10 +200,9 @@ IPATH += $(SD_API_PATH)/include/nrf52
202200

203201
INC_PATHS = $(addprefix -I,$(IPATH))
204202

205-
#******************************************************************************
203+
#------------------------------------------------------------------------------
206204
# Compiler Flags
207-
# - Additional compiler flags
208-
#******************************************************************************
205+
#------------------------------------------------------------------------------
209206

210207
# Debugging/Optimization
211208
ifeq ($(DEBUG), 1)
@@ -252,10 +249,9 @@ _VER = $(subst ., ,$(word 1, $(subst -, ,$(GIT_VERSION))))
252249
CFLAGS += -DMK_BOOTLOADER_VERSION='($(word 1,$(_VER)) << 16) + ($(word 2,$(_VER)) << 8) + $(word 3,$(_VER))'
253250

254251

255-
#******************************************************************************
252+
#------------------------------------------------------------------------------
256253
# Linker Flags
257-
#
258-
#******************************************************************************
254+
#------------------------------------------------------------------------------
259255

260256
LDFLAGS += \
261257
$(CFLAGS) \
@@ -265,10 +261,9 @@ LDFLAGS += \
265261

266262
LIBS += -lm -lc
267263

268-
#******************************************************************************
264+
#------------------------------------------------------------------------------
269265
# Assembler flags
270-
#
271-
#******************************************************************************
266+
#------------------------------------------------------------------------------
272267
ASFLAGS += $(CFLAGS)
273268

274269

@@ -288,9 +283,9 @@ vpath %.S $(ASM_PATHS)
288283

289284
OBJECTS = $(C_OBJECTS) $(ASM_OBJECTS)
290285

291-
#******************************************************************************
286+
#------------------------------------------------------------------------------
292287
# BUILD TARGETS
293-
#******************************************************************************
288+
#------------------------------------------------------------------------------
294289

295290
# Verbose mode (V=). 0: default, 1: print out CFLAG, LDFLAG 2: print all compile command
296291
ifeq ("$(V)","1")
@@ -307,7 +302,7 @@ endif
307302
# default target to build
308303
all: $(BUILD)/$(OUT_FILE)-nosd.out size
309304

310-
#******************* Flash target *******************
305+
#------------------- Flash target -------------------
311306

312307
check_defined = \
313308
$(strip $(foreach 1,$1, \
@@ -340,7 +335,7 @@ gdbflash: $(BUILD)/$(MERGED_FILE).hex
340335
gdb: $(BUILD)/$(OUT_FILE)-nosd.out
341336
$(GDB_BMP) $<
342337

343-
#******************* Compile rules *******************
338+
#------------------- Compile rules -------------------
344339

345340
## Create build directories
346341
$(BUILD):
@@ -369,8 +364,7 @@ size: $(BUILD)/$(OUT_FILE)-nosd.out
369364
@$(SIZE) $<
370365
-@echo ''
371366

372-
373-
#******************* Binary generator *******************
367+
#------------------- Binary generator -------------------
374368
.phony: genhex genpkg
375369

376370
## Create binary .hex file from the .out file

0 commit comments

Comments
 (0)