Skip to content

Commit

Permalink
Add New Variant VCCGND_F103ZET6 (Mini)
Browse files Browse the repository at this point in the history
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
  • Loading branch information
fpistm committed Jan 3, 2020
1 parent 6a32fad commit d209195
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d
| :yellow_heart: | Generic F103Z(C-D-E-F-G) | **1.8.1** | |
| :green_heart: | HY-TinySTM103T | *1.5.0* | |
| :green_heart: | MapleMini F103CB | *1.2.0* | USB CDC support since *1.5.0*, Maple bootloaders support since *1.6.0* |
| :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 |


| Status | Generic STM32F3xx | Release | Comment |
| :---: | --- | :---: | :--- |
Expand Down
15 changes: 15 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,21 @@ GenF1.menu.pnum.Generic_F103ZG.build.board=Generic_F103ZG
GenF1.menu.pnum.Generic_F103ZG.build.product_line=STM32F103xG
GenF1.menu.pnum.Generic_F103ZG.build.variant=Generic_F103Zx

# VCCGND_F103ZET6 board
GenF1.menu.pnum.VCCGND_F103ZET6Mini=VCCGND F103ZET6 Mini
GenF1.menu.pnum.VCCGND_F103ZET6Mini.upload.maximum_size=524288
GenF1.menu.pnum.VCCGND_F103ZET6Mini.upload.maximum_data_size=65536
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.board=VCCGND_F103ZET6_MINI
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.product_line=STM32F103xE
GenF1.menu.pnum.VCCGND_F103ZET6Mini.build.variant=Generic_F103Zx

GenF1.menu.pnum.VCCGND_F103ZET6=VCCGND F103ZET6
GenF1.menu.pnum.VCCGND_F103ZET6.upload.maximum_size=524288
GenF1.menu.pnum.VCCGND_F103ZET6.upload.maximum_data_size=65536
GenF1.menu.pnum.VCCGND_F103ZET6.build.board=VCCGND_F103ZET6
GenF1.menu.pnum.VCCGND_F103ZET6.build.product_line=STM32F103xE
GenF1.menu.pnum.VCCGND_F103ZET6.build.variant=Generic_F103Zx

# HY-TinySTM103TB board
GenF1.menu.pnum.HY_TinySTM103TB=HY-TinySTM103TB
GenF1.menu.pnum.HY_TinySTM103TB.upload.maximum_size=131072
Expand Down
17 changes: 15 additions & 2 deletions variants/Generic_F103Zx/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,24 @@ extern "C" {
#define NUM_ANALOG_INPUTS 21

// On-board LED pin number
#ifdef VCCGND_F103ZET6_MINI
#define LED_BUILTIN PG15
#elif defined(VCCGND_F103ZET6)
#define LED_BUILTIN PC13
#endif

// SPI Definitions
#define PIN_SPI_SS PA4
#ifdef VCCGND_F103ZET6
#define PIN_SPI_SS PA15
#define PIN_SPI_MOSI PB5
#define PIN_SPI_MISO PB4
#define PIN_SPI_SCK PB3
#else
#define PIN_SPI_SS PC4
#define PIN_SPI_MOSI PA7
#define PIN_SPI_MISO PA6
#define PIN_SPI_SCK PA5
#endif

// I2C Definitions
#define PIN_WIRE_SDA PB7
Expand Down Expand Up @@ -181,11 +192,13 @@ extern "C" {

/* Extra HAL modules */
#define HAL_DAC_MODULE_ENABLED
#define HAL_SD_MODULE_ENABLED

#ifdef VCCGND_F103ZET6_MINI
#define HAL_SD_MODULE_ENABLED
// SD card slot Definitions
// SD detect signal can be defined if required
#define SD_DETECT_PIN PF10
#endif

#ifdef __cplusplus
} // extern "C"
Expand Down

0 comments on commit d209195

Please sign in to comment.