Skip to content

Commit cd7b7d7

Browse files
Merge pull request #360 from Squonk42/master
Added missing SDIO pins for F103V and F103Z
2 parents 05f008a + 80ae49d commit cd7b7d7

File tree

2 files changed

+20
-0
lines changed
  • STM32F1/variants

2 files changed

+20
-0
lines changed

STM32F1/variants/generic_stm32f103v/board/board.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,16 @@
109109
#define BOARD_USB_DISC_DEV GPIOC
110110
#define BOARD_USB_DISC_BIT 12
111111

112+
/*
113+
* SDIO Pins
114+
*/
115+
#define BOARD_SDIO_D0 PC8
116+
#define BOARD_SDIO_D1 PC9
117+
#define BOARD_SDIO_D2 PC10
118+
#define BOARD_SDIO_D3 PC11
119+
#define BOARD_SDIO_CLK PC12
120+
#define BOARD_SDIO_CMD PD2
121+
112122
/* Pin aliases: these give the GPIO port/bit for each pin as an
113123
* enum. These are optional, but recommended. They make it easier to
114124
* write code using low-level GPIO functionality. */

STM32F1/variants/generic_stm32f103z/board/board.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,16 @@
102102
#define BOARD_USB_DISC_DEV GPIOC
103103
#define BOARD_USB_DISC_BIT 12
104104

105+
/*
106+
* SDIO Pins
107+
*/
108+
#define BOARD_SDIO_D0 PC8
109+
#define BOARD_SDIO_D1 PC9
110+
#define BOARD_SDIO_D2 PC10
111+
#define BOARD_SDIO_D3 PC11
112+
#define BOARD_SDIO_CLK PC12
113+
#define BOARD_SDIO_CMD PD2
114+
105115
/* Pin aliases: these give the GPIO port/bit for each pin as an
106116
* enum. These are optional, but recommended. They make it easier to
107117
* write code using low-level GPIO functionality. */

0 commit comments

Comments
 (0)