Skip to content

Commit 2386fd0

Browse files
tridgeAlkaMotors
authored andcommitted
added PC6 on A153
1 parent b089e17 commit 2386fd0

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

a153makefile.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ CFLAGS_$(MCU) += \
2929
SRC_$(MCU)_BL := $(foreach dir,$(SRC_BASE_DIR_$(MCU)),$(wildcard $(dir)/*.[cs])) \
3030
$(wildcard $(HAL_FOLDER_$(MCU))/Src/*.c)
3131

32-
BOOTLOADER_PINS_$(MCU) = PB2
32+
BOOTLOADER_PINS_$(MCU) = PB2 PC6

bootloader/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@
103103
#define input_port GPIOB
104104
#define PIN_NUMBER 2
105105
#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
106111
#else
107112
#error "Bootloader comms pin not defined"
108113
#endif

0 commit comments

Comments
 (0)