File tree Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Expand file tree Collapse file tree 3 files changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,22 @@ GenF1.menu.pnum.BLUEPILL_F103C8B.build.board=BLUEPILL_F103C8
543
543
GenF1.menu.pnum.BLUEPILL_F103C8B.build.product_line=STM32F103xB
544
544
GenF1.menu.pnum.BLUEPILL_F103C8B.build.variant=BLUEPILL_F103C8
545
545
546
+ # BLACKPILL_F103C8 board
547
+ # Support: Serial2 (USART2 on PA3, PA2) and Serial3 (USART3 on PB11, PB10)
548
+ GenF1.menu.pnum.BLACKPILL_F103C8=BlackPill F103C8
549
+ GenF1.menu.pnum.BLACKPILL_F103C8.upload.maximum_size=65536
550
+ GenF1.menu.pnum.BLACKPILL_F103C8.upload.maximum_data_size=20480
551
+ GenF1.menu.pnum.BLACKPILL_F103C8.build.board=BLACKPILL_F103C8
552
+ GenF1.menu.pnum.BLACKPILL_F103C8.build.product_line=STM32F103xB
553
+ GenF1.menu.pnum.BLACKPILL_F103C8.build.variant=BLUEPILL_F103C8
554
+
555
+ GenF1.menu.pnum.BLACKPILL_F103C8B=BlackPill F103C8 (128k)
556
+ GenF1.menu.pnum.BLACKPILL_F103C8B.upload.maximum_size=131072
557
+ GenF1.menu.pnum.BLACKPILL_F103C8B.upload.maximum_data_size=20480
558
+ GenF1.menu.pnum.BLACKPILL_F103C8B.build.board=BLACKPILL_F103C8
559
+ GenF1.menu.pnum.BLACKPILL_F103C8B.build.product_line=STM32F103xB
560
+ GenF1.menu.pnum.BLACKPILL_F103C8B.build.variant=BLUEPILL_F103C8
561
+
546
562
# MAPLEMINI_F103CB board
547
563
# Support: Serial2 (USART2 on PA3, PA2) and Serial3 (USART3 on PB11, PB10)
548
564
GenF1.menu.pnum.MAPLEMINI_F103CB=Maple Mini F103CB
Original file line number Diff line number Diff line change @@ -53,9 +53,9 @@ const PinName digitalPin[] = {
53
53
PB_15, // D13
54
54
PB_14, // D14
55
55
PB_13, // D15
56
- PB_12, // D16
56
+ PB_12, // D16 - LED Blackpill
57
57
/* Right side */
58
- PC_13, // D17 - LED
58
+ PC_13, // D17 - LED Bluepill
59
59
PC_14, // D18
60
60
PC_15, // D19
61
61
PA_0, // D20/A0
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ extern "C"{
44
44
*----------------------------------------------------------------------------*/
45
45
extern const PinName digitalPin [];
46
46
47
- // USB connector on the top, MCU side
47
+ // Bluepill USB connector on the top, MCU side - Blackpill USB connector on bottom, MCU Side (pins are reversed vertically for Arduino Ananlog pin correct sequence.
48
48
// Left Side
49
49
#define PB9 0
50
50
#define PB8 1
@@ -62,9 +62,9 @@ extern const PinName digitalPin[];
62
62
#define PB15 13
63
63
#define PB14 14
64
64
#define PB13 15
65
- #define PB12 16
65
+ #define PB12 16 // LED Blackpill
66
66
// Right side
67
- #define PC13 17 // LED
67
+ #define PC13 17 // LED Bluepill
68
68
#define PC14 18
69
69
#define PC15 19
70
70
#define PA0 20 // A0
@@ -91,7 +91,11 @@ extern const PinName digitalPin[];
91
91
#define NUM_ANALOG_FIRST 20
92
92
93
93
// On-board LED pin number
94
+ #ifdef ARDUINO_BLUEPILL_F103C8
94
95
#define LED_BUILTIN PC13
96
+ #else
97
+ #define LED_BUILTIN PB12
98
+ #endif
95
99
#define LED_GREEN LED_BUILTIN
96
100
97
101
// SPI Definitions
You can’t perform that action at this time.
0 commit comments