Skip to content

Commit 73b621d

Browse files
Added Naze32 version with LED on PB3 (no button)
1 parent 093b4df commit 73b621d

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

STM32F1/Makefile

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ generic-pe5-button-pa0: begin gccversion build_generic-pe5-button-pa0 sizeafter
128128
generic-pb7: begin gccversion build_generic-pb7 sizeafter finished copy_generic-pb7 end
129129
generic-pb0: begin gccversion build_generic-pb0 sizeafter finished copy_generic-pb0 end
130130
stbee : begin gccversion build_stbee sizeafter finished copy_stbee end
131+
naze32: begin gccversion build_naze32 sizeafter finished copy_naze32 end
131132
build: elf bin lss sym
132133

133134
build_maple-mini: TARGETFLAGS= -DTARGET_MAPLE_MINI
@@ -314,7 +315,19 @@ copy_stbee:
314315
@echo "Copying to binaries folder"
315316
@echo
316317
cp $(TARGET).bin binaries/stbee_boot20.bin
317-
@echo
318+
@echo
319+
320+
build_naze32: TARGETFLAGS= -DTARGET_NAZE32
321+
# Set the linker script
322+
build_naze32: LDFLAGS +=-T$(ST_LIB)/c_only_md_high_density.ld
323+
build_naze32: elf bin lss sym
324+
copy_naze32:
325+
@echo
326+
@echo "Copying to binaries folder"
327+
@echo
328+
cp $(TARGET).bin binaries/naze32_boot20.bin
329+
@echo
330+
318331

319332
bin: $(TARGET).bin
320333
elf: $(TARGET).elf

STM32F1/binaries/naze32_boot20.bin

6.9 KB
Binary file not shown.

STM32F1/config.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,13 @@
274274

275275
/* CRISTAL 12MHz */
276276
#define XTAL12M 1
277-
277+
278+
#elif defined TARGET_NAZE32
279+
280+
#define LED_BANK GPIOB
281+
#define LED_PIN 3
282+
#define LED_ON_STATE 0
283+
278284
#else
279285
#error "No config for this target"
280286
#endif

0 commit comments

Comments
 (0)