Add fastboot version to the makefile etc · ahn-github/STM32duino-bootloader@f9cc0e9 · GitHub
Skip to content

Commit f9cc0e9

Browse files
Add fastboot version to the makefile etc
1 parent 2b661ec commit f9cc0e9

5 files changed

Lines changed: 28 additions & 0 deletions

File tree

Makefile

Lines changed: 12 additions & 0 deletions
0 Bytes
Binary file not shown.
12 Bytes
Binary file not shown.

config.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,23 @@
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

make_all.bat

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)