File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments