Skip to content

Commit c3d9d1b

Browse files
Added define for LED_BUILTIN to Maple mini and generic STM32F103C (on PC13 to suit the BluePill)
1 parent c6fe342 commit c3d9d1b

File tree

2 files changed

+4
-0
lines changed
  • STM32F1/variants

2 files changed

+4
-0
lines changed

STM32F1/variants/generic_stm32f103c/board/board.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@
7373
#define BOARD_USB_DISC_DEV GPIOB
7474
#define BOARD_USB_DISC_BIT 10
7575

76+
#define LED_BUILTIN PC13
77+
7678
// Note this needs to match with the PIN_MAP array in board.cpp
7779
enum {
7880
PA0, PA1, PA2, PA3, PA4, PA5, PA6, PA7, PA8, PA9, PA10, PA11, PA12, PA13,PA14,PA15,

STM32F1/variants/maple_mini/board/board.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@
7171
#define BOARD_USB_DISC_DEV GPIOB
7272
#define BOARD_USB_DISC_BIT 9
7373

74+
#define LED_BUILTIN PB1
75+
7476
enum {
7577
PB11, PB10, PB2, PB0, PA7, PA6, PA5, PA4, PA3, PA2, PA1, PA0, PC15, PC14,
7678
PC13, PB7, PB6, PB5, PB4, PB3, PA15, PA14, PA13, PA12, PA11, PA10, PA9,

0 commit comments

Comments
 (0)