Skip to content

Commit 41c6676

Browse files
committed
Add missing SPI and i2c definitions
1 parent 8cae48c commit 41c6676

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

variants/Generic_F410Cx/variant.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,19 @@ extern "C" {
8585
#define USER_BTN PC13
8686
#endif
8787

88+
// SPI definitions
89+
#define PIN_SPI_SS PA4
90+
#define PIN_SPI_SS1 PA4
91+
#define PIN_SPI_SS2 PB12
92+
#define PIN_SPI_SS5 PB1
93+
#define PIN_SPI_MOSI PA7
94+
#define PIN_SPI_MISO PA6
95+
#define PIN_SPI_SCK PA5
96+
97+
// I2C definitions
98+
#define PIN_WIRE_SDA PB9
99+
#define PIN_WIRE_SCL PB8
100+
88101
// Timer Definitions
89102
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
90103
#define TIMER_TONE TIM6

variants/Generic_F410Rx/variant.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,20 @@ extern "C" {
104104
#define TIMER_TONE TIM6
105105
#define TIMER_SERVO TIM7
106106

107+
// SPI definitions
108+
#define PIN_SPI_SS PA4
109+
#define PIN_SPI_SS1 PA4
110+
#define PIN_SPI_SS2 PB9
111+
#define PIN_SPI_SS3 PA15
112+
#define PIN_SPI_SS5 PB1
113+
#define PIN_SPI_MOSI PA7
114+
#define PIN_SPI_MISO PA6
115+
#define PIN_SPI_SCK PA5
116+
117+
// I2C definitions
118+
#define PIN_WIRE_SDA PB9
119+
#define PIN_WIRE_SCL PB8
120+
107121
// UART Definitions
108122
#define SERIAL_UART_INSTANCE 2 // Connected to ST-Link
109123

variants/Generic_F446Rx/variant.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,19 @@ extern "C" {
100100
#define USER_BTN PC13
101101
#endif
102102

103+
// SPI definitions
104+
#define PIN_SPI_SS PA4
105+
#define PIN_SPI_SS1 PA4
106+
#define PIN_SPI_SS2 PB9
107+
#define PIN_SPI_SS3 PA15
108+
#define PIN_SPI_MOSI PA7
109+
#define PIN_SPI_MISO PA6
110+
#define PIN_SPI_SCK PA5
111+
112+
// I2C definitions
113+
#define PIN_WIRE_SDA PB9
114+
#define PIN_WIRE_SCL PB8
115+
103116
// Timer Definitions
104117
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
105118
#define TIMER_TONE TIM6

0 commit comments

Comments
 (0)