File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ dso138: begin clean gccversion build_dso138 sizeafter finished copy_dso138 end
138138gd32f1-generic-pc13 : begin clean gccversion build_gd32f1-generic-pc13 sizeafter finished copy_gd32f1-generic-pc13 end
139139gd32f1-frankenmaple : begin clean gccversion build_gd32f1-frankenmaple sizeafter finished copy_gd32f1-frankenmaple end
140140cc3d : begin clean gccversion build_cc3d sizeafter finished copy_cc3d end
141+ generic-pc13-fastboot : begin clean gccversion build_generic-pc13-fastboot sizeafter finished copy_generic-pc13-fastboot end
141142
142143build : elf bin lss sym
143144
@@ -427,6 +428,17 @@ copy_cc3d:
427428 cp $(TARGET ) .bin bootloader_only_binaries/cc3d.bin
428429 @echo
429430
431+ build_generic-pc13-fastboot : TARGETFLAGS= -DTARGET_GENERIC_F103_PC13_FASTBOOT $(DEFINES )
432+ # Set the linker script
433+ build_generic-pc13-fastboot : LDFLAGS +=-T$(ST_LIB ) /c_only_md_high_density.ld
434+ build_generic-pc13-fastboot : elf bin lss sym
435+ copy_generic-pc13-fastboot :
436+ @echo
437+ @echo " Copying to binaries folder"
438+ @echo
439+ cp $(TARGET ) .bin bootloader_only_binaries/generic_boot20_pc13_fastboot.bin
440+ @echo
441+
430442
431443bin : $(TARGET ) .bin
432444elf : $(TARGET ) .elf
Original file line number Diff line number Diff line change 159159 #define BUTTON_BANK GPIOB
160160 #define BUTTON_PIN 2
161161 #define BUTTON_PRESSED_STATE 1
162+
163+ #elif defined TARGET_GENERIC_F103_PC13_FASTBOOT
162164
163165
166+ #define LED_BANK GPIOC
167+ #define LED_PIN 13
168+ #define LED_ON_STATE 0
169+
170+ // Use Boot1 PB2 as the button, as hardly anyone uses this pin as GPIO
171+ // Need to set the button input mode to just CR_INPUT and not CR_INPUT_PU_PD because the external pullup on the jumplink is very weak
172+ #define BUTTON_INPUT_MODE CR_INPUT
173+ #define BUTTON_BANK GPIOB
174+ #define BUTTON_PIN 2
175+ #define BUTTON_PRESSED_STATE 1
176+
177+ #define FASTBOOT 1
178+
164179#elif defined TARGET_GENERIC_F103_NONE
165180
166181
Original file line number Diff line number Diff line change @@ -23,3 +23,4 @@ make dso138
2323make gd32f1-generic-pc13
2424make gd32f1-frankenmaple
2525make cc3d
26+ make generic-pc13-fastboot
You can’t perform that action at this time.
0 commit comments