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" {
85
85
#define USER_BTN PC13
86
86
#endif
87
87
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
+
88
101
// Timer Definitions
89
102
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
90
103
#define TIMER_TONE TIM6
Original file line number Diff line number Diff line change @@ -104,6 +104,20 @@ extern "C" {
104
104
#define TIMER_TONE TIM6
105
105
#define TIMER_SERVO TIM7
106
106
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
+
107
121
// UART Definitions
108
122
#define SERIAL_UART_INSTANCE 2 // Connected to ST-Link
109
123
Original file line number Diff line number Diff line change @@ -100,6 +100,19 @@ extern "C" {
100
100
#define USER_BTN PC13
101
101
#endif
102
102
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
+
103
116
// Timer Definitions
104
117
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
105
118
#define TIMER_TONE TIM6
You can’t perform that action at this time.
0 commit comments