Skip to content

Commit 8c623a5

Browse files
committed
Added make target for cc3d (Copter Control 3D board)
1 parent 87236af commit 8c623a5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ hytiny-stm32f103t: begin clean gccversion build_hytiny-stm32f103t sizeafter fini
136136
dso138: begin clean gccversion build_dso138 sizeafter finished copy_dso138 end
137137
gd32f1-generic-pc13: begin clean gccversion build_gd32f1-generic-pc13 sizeafter finished copy_gd32f1-generic-pc13 end
138138
gd32f1-frankenmaple: begin clean gccversion build_gd32f1-frankenmaple sizeafter finished copy_gd32f1-frankenmaple end
139+
cc3d: begin clean gccversion build_cc3d sizeafter finished copy_cc3d end
139140

140141
build: elf bin lss sym
141142

@@ -403,6 +404,17 @@ copy_gd32f1-frankenmaple:
403404
cp $(TARGET).bin bootloader_only_binaries/gd32f1_frankenmaple.bin
404405
@echo
405406

407+
build_cc3d: TARGETFLAGS= -DTARGET_CC3D
408+
# Set the linker script
409+
build_cc3d: LDFLAGS +=-T$(ST_LIB)/c_only_md_high_density.ld
410+
build_cc3d: elf bin lss sym
411+
copy_cc3d:
412+
@echo
413+
@echo "Copying to binaries folder"
414+
@echo
415+
cp $(TARGET).bin bootloader_only_binaries/cc3d.bin
416+
@echo
417+
406418

407419
bin: $(TARGET).bin
408420
elf: $(TARGET).elf

config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,12 @@
369369
/* CRISTAL 12MHz */
370370
#define XTAL12M 1
371371

372+
#elif defined TARGET_CC3D
373+
374+
#define LED_BANK GPIOB
375+
#define LED_PIN 3
376+
#define LED_ON_STATE 0
377+
372378

373379
#else
374380
#error "No config for this target"

0 commit comments

Comments
 (0)