Skip to content

Commit 2a8f9a7

Browse files
committed
Add New Variant VCCGND_F103ZET6 (Mini)
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 182acad commit 2a8f9a7

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
111111
| :yellow_heart: | Generic F103Z(C-D-E-F-G) | **1.8.1** | |
112112
| :green_heart: | HY-TinySTM103T | *1.5.0* | |
113113
| :green_heart: | MapleMini F103CB | *1.2.0* | USB CDC support since *1.5.0*, Maple bootloaders support since *1.6.0* |
114+
| :yellow_heart: | [Vcc-Gnd F103ZET6](http://www.vcc-gnd.com/rtd/html/STM32/quickref.html#stm32f1) | **1.8.1** | [Standard](https://stm32-base.org/boards/STM32F103ZET6-VCC-GND-XLarge) and Mini |
115+
114116

115117
| Status | Generic STM32F3xx | Release | Comment |
116118
| :---: | --- | :---: | :--- |

boards.txt

+15
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,21 @@ GenF1.menu.pnum.Generic_F103ZG.build.board=Generic_F103ZG
867867
GenF1.menu.pnum.Generic_F103ZG.build.product_line=STM32F103xG
868868
GenF1.menu.pnum.Generic_F103ZG.build.variant=Generic_F103Zx
869869

870+
# VCCGND_F103ZET6 board
871+
GenF1.menu.pnum.VCCGND_F103ZET6Mini=VCCGND F103ZET6 Mini
872+
GenF1.menu.pnum.VCCGND_F103ZET6Mini.upload.maximum_size=524288
873+
GenF1.menu.pnum.VCCGND_F103ZET6Mini.upload.maximum_data_size=65536
874+
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.board=VCCGND_F103ZET6_MINI
875+
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.product_line=STM32F103xE
876+
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.variant=Generic_F103Zx
877+
878+
GenF1.menu.pnum.VCCGND_F103ZET6=VCCGND F103ZET6
879+
GenF1.menu.pnum.VCCGND_F103ZET6.upload.maximum_size=524288
880+
GenF1.menu.pnum.VCCGND_F103ZET6.upload.maximum_data_size=65536
881+
GenF1.menu.pnum.VCCGND_F103ZET6.build.board=VCCGND_F103ZET6
882+
GenF1.menu.pnum.VCCGND_F103ZET6.build.product_line=STM32F103xE
883+
GenF1.menu.pnum.VCCGND_F103ZET6.build.variant=Generic_F103Zx
884+
870885
# HY-TinySTM103TB board
871886
GenF1.menu.pnum.HY_TinySTM103TB=HY-TinySTM103TB
872887
GenF1.menu.pnum.HY_TinySTM103TB.upload.maximum_size=131072

variants/Generic_F103Zx/variant.h

+22-1
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,25 @@ extern "C" {
144144
#define NUM_DIGITAL_PINS 112
145145
#define NUM_ANALOG_INPUTS 21
146146

147+
// On-board LED pin number
148+
#ifdef ARDUINO_VCCGND_F103ZET6_MINI
149+
#define LED_BUILTIN PG15
150+
#elif defined(ARDUINO_VCCGND_F103ZET6)
151+
#define LED_BUILTIN PC13
152+
#endif
153+
147154
// SPI Definitions
148-
#define PIN_SPI_SS PA4
155+
#ifdef ARDUINO_VCCGND_F103ZET6
156+
#define PIN_SPI_SS PA15
157+
#define PIN_SPI_MOSI PB5
158+
#define PIN_SPI_MISO PB4
159+
#define PIN_SPI_SCK PB3
160+
#else
161+
#define PIN_SPI_SS PC4
149162
#define PIN_SPI_MOSI PA7
150163
#define PIN_SPI_MISO PA6
151164
#define PIN_SPI_SCK PA5
165+
#endif
152166

153167
// I2C Definitions
154168
#define PIN_WIRE_SDA PB7
@@ -179,6 +193,13 @@ extern "C" {
179193
/* Extra HAL modules */
180194
#define HAL_DAC_MODULE_ENABLED
181195

196+
#ifdef ARDUINO_VCCGND_F103ZET6_MINI
197+
#define HAL_SD_MODULE_ENABLED
198+
// SD card slot Definitions
199+
// SD detect signal can be defined if required
200+
#define SD_DETECT_PIN PF10
201+
#endif
202+
182203
#ifdef __cplusplus
183204
} // extern "C"
184205
#endif

0 commit comments

Comments
 (0)