We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b089e17 commit 2386fd0Copy full SHA for 2386fd0
2 files changed
a153makefile.mk
@@ -29,4 +29,4 @@ CFLAGS_$(MCU) += \
29
SRC_$(MCU)_BL := $(foreach dir,$(SRC_BASE_DIR_$(MCU)),$(wildcard $(dir)/*.[cs])) \
30
$(wildcard $(HAL_FOLDER_$(MCU))/Src/*.c)
31
32
-BOOTLOADER_PINS_$(MCU) = PB2
+BOOTLOADER_PINS_$(MCU) = PB2 PC6
bootloader/main.c
@@ -103,6 +103,11 @@
103
#define input_port GPIOB
104
#define PIN_NUMBER 2
105
#define PORT_LETTER 1
106
+#elif defined(USE_PC6)
107
+#define input_pin GPIO_PIN(6)
108
+#define input_port GPIOC
109
+#define PIN_NUMBER 6
110
+#define PORT_LETTER 2
111
#else
112
#error "Bootloader comms pin not defined"
113
#endif
0 commit comments