Skip to content

Commit a65e03c

Browse files
committed
Add New Variant VCCGND_F103ZET6 (Mini)
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 6a32fad commit a65e03c

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
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

+15-2
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,24 @@ extern "C" {
145145
#define NUM_ANALOG_INPUTS 21
146146

147147
// On-board LED pin number
148+
#ifdef ARDUINO_VCCGND_F103ZET6_MINI
148149
#define LED_BUILTIN PG15
150+
#elif defined(ARDUINO_VCCGND_F103ZET6)
151+
#define LED_BUILTIN PC13
152+
#endif
149153

150154
// SPI Definitions
151-
#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
152162
#define PIN_SPI_MOSI PA7
153163
#define PIN_SPI_MISO PA6
154164
#define PIN_SPI_SCK PA5
165+
#endif
155166

156167
// I2C Definitions
157168
#define PIN_WIRE_SDA PB7
@@ -181,11 +192,13 @@ extern "C" {
181192

182193
/* Extra HAL modules */
183194
#define HAL_DAC_MODULE_ENABLED
184-
#define HAL_SD_MODULE_ENABLED
185195

196+
#ifdef ARDUINO_VCCGND_F103ZET6_MINI
197+
#define HAL_SD_MODULE_ENABLED
186198
// SD card slot Definitions
187199
// SD detect signal can be defined if required
188200
#define SD_DETECT_PIN PF10
201+
#endif
189202

190203
#ifdef __cplusplus
191204
} // extern "C"

0 commit comments

Comments
 (0)