Skip to content

Commit 758cf9b

Browse files
alextricalfpistm
authored andcommitted
variant: add BlackPill F401CE support
Fixes #1143
1 parent d853338 commit 758cf9b

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
271271
| :----: | :-------: | ---- | :-----: | :---- |
272272
| :green_heart: | STM32F405RG | [Adafruit Feather STM32F405 Express](https://www.adafruit.com/product/4382) | *1.8.0* | |
273273
| :green_heart: | STM32F401CC | [WeAct Black Pill](https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2) | *1.7.0* | [More info](https://github.com/WeActTC/MiniF4-STM32F4x1) |
274+
| :yellow_heart: | STM32F401CE | [WeAct Black Pill](https://stm32-base.org/boards/STM32F401CEU6-WeAct-Black-Pill-V3.0) | **2.4.0** | [More info](https://github.com/WeActStudio/WeActStudio.MiniSTM32F4x1) |
274275
| :green_heart: | STM32F411CE | [WeAct Black Pill](https://stm32-base.org/boards/STM32F411CEU6-WeAct-Black-Pill-V2.0) | *1.9.0* | [More info](https://github.com/WeActTC/MiniF4-STM32F4x1) |
275276
| :green_heart: | STM32F407VE<br>STM32F407VG | [STM32 F4VE / Black F407VET6](https://stm32-base.org/boards/STM32F407VET6-STM32-F4VE-V2.0) | *1.4.0* | STM32F407VG support since *1.5.0* |
276277
| :green_heart: | STM32F407ZE<br>STM32F407ZG | Black F407ZE / Black F407ZG | *1.5.0* | |

boards.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2967,9 +2967,19 @@ GenF4.menu.pnum.BLACKPILL_F401CC.upload.maximum_data_size=65536
29672967
GenF4.menu.pnum.BLACKPILL_F401CC.build.board=BLACKPILL_F401CC
29682968
GenF4.menu.pnum.BLACKPILL_F401CC.build.product_line=STM32F401xC
29692969
GenF4.menu.pnum.BLACKPILL_F401CC.build.variant=STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)
2970-
GenF4.menu.pnum.BLACKPILL_F401CC.build.variant_h=variant_{build.board}.h
2970+
GenF4.menu.pnum.BLACKPILL_F401CC.build.variant_h=variant_BLACKPILL_F401Cx.h
29712971
GenF4.menu.pnum.BLACKPILL_F401CC.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
29722972

2973+
# BlackPill F401CE
2974+
GenF4.menu.pnum.BLACKPILL_F401CE=BlackPill F401CE
2975+
GenF4.menu.pnum.BLACKPILL_F401CE.upload.maximum_size=524288
2976+
GenF4.menu.pnum.BLACKPILL_F401CE.upload.maximum_data_size=98304
2977+
GenF4.menu.pnum.BLACKPILL_F401CE.build.board=BLACKPILL_F401CE
2978+
GenF4.menu.pnum.BLACKPILL_F401CE.build.product_line=STM32F401xE
2979+
GenF4.menu.pnum.BLACKPILL_F401CE.build.variant=STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)
2980+
GenF4.menu.pnum.BLACKPILL_F401CE.build.variant_h=variant_BLACKPILL_F401Cx.h
2981+
GenF4.menu.pnum.BLACKPILL_F401CE.build.peripheral_pins=-DCUSTOM_PERIPHERAL_PINS
2982+
29732983
# BlackPill F411CE
29742984
# https://github.com/mcauser/WEACT_F411CEU6
29752985
GenF4.menu.pnum.BLACKPILL_F411CE=BlackPill F411CE

variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/PeripheralPins_BLACKPILL_F401CC.c renamed to variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/PeripheralPins_BLACKPILL_F401Cx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* STM32F401CCFx.xml
1717
* CubeMX DB release 6.0.20
1818
*/
19-
#if defined(ARDUINO_BLACKPILL_F401CC)
19+
#if defined(ARDUINO_BLACKPILL_F401CC) || defined(ARDUINO_BLACKPILL_F401CE)
2020
#include "Arduino.h"
2121
#include "PeripheralPins.h"
2222

@@ -221,4 +221,4 @@ WEAK const PinMap PinMap_USB_OTG_FS[] = {
221221

222222
//*** No SD ***
223223

224-
#endif /* ARDUINO_BLACKPILL_F401CC */
224+
#endif /* (ARDUINO_BLACKPILL_F401CC) || (ARDUINO_BLACKPILL_F401CE) */

variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401CC.cpp renamed to variants/STM32F4xx/F401CC(F-U-Y)_F401C(B-D-E)(U-Y)/variant_BLACKPILL_F401Cx.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*******************************************************************************
1212
*/
13-
#if defined(ARDUINO_BLACKPILL_F401CC)
13+
#if defined(ARDUINO_BLACKPILL_F401CC) || defined(ARDUINO_BLACKPILL_F401CE)
1414

1515
#include "pins_arduino.h"
1616

@@ -118,4 +118,4 @@ WEAK void SystemClock_Config(void)
118118
}
119119
#endif
120120

121-
#endif /* ARDUINO_BLACKPILL_F401CC */
121+
#endif /* (ARDUINO_BLACKPILL_F401CC) || (ARDUINO_BLACKPILL_F401CE) */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy