@@ -58,16 +58,16 @@ extern "C" {
58
58
#define PC2 12
59
59
#define PC1 13
60
60
61
- #define PA4 14 // A0
62
- #define PA5 15 // A1
63
- #define PA6 16 // A2
64
- #define PA7 17 // A3
65
- #define PC4 18 // A4
66
- #define PC5 19 // A5
67
- #define PA3 20 // A6 - VDIV
61
+ #define PB7 14 // SDA
62
+ #define PB6 15 // SCL
68
63
69
- #define PB6 21 // SCL
70
- #define PB7 22 // SDA
64
+ #define PA4 16 // A0
65
+ #define PA5 17 // A1
66
+ #define PA6 18 // A2
67
+ #define PA7 19 // A3
68
+ #define PC4 20 // A4
69
+ #define PC5 21 // A5
70
+ #define PA3 22 // A6 - VDIV
71
71
72
72
#define PB13 23 // SCK
73
73
#define PB14 24 // MISO
@@ -95,7 +95,7 @@ extern "C" {
95
95
#define NUM_DIGITAL_PINS 39
96
96
// This must be a literal with a value less than or equal to MAX_ANALOG_INPUTS
97
97
#define NUM_ANALOG_INPUTS 7
98
- #define NUM_ANALOG_FIRST 14
98
+ #define NUM_ANALOG_FIRST 16
99
99
100
100
// Below ADC, DAC and PWM definitions already done in the core
101
101
// Could be redefined here if needed
@@ -116,22 +116,16 @@ extern "C" {
116
116
// On-board user button
117
117
//#define BTN_K_UP PA0 - no user button
118
118
119
- // Below SPI and I2C definitions already done in the core
120
- // Could be redefined here if differs from the default one
121
119
// SPI Definitions
122
120
#define PIN_SPI_MOSI PB15
123
121
#define PIN_SPI_MISO PB14
124
122
#define PIN_SPI_SCK PB13
125
123
#define PIN_SPI_SS PA15
126
124
127
- #define PIN_SPI1_MOSI PB5
128
- #define PIN_SPI1_MISO PB4
129
- #define PIN_SPI1_SCK PB3
130
- #define PIN_SPI1_SS PA15
131
-
132
- // I2C Definitions
133
- #define PIN_WIRE_SDA PB7
134
- #define PIN_WIRE_SCL PB6
125
+ #define PIN_SPI1_MOSI PB5
126
+ #define PIN_SPI1_MISO PB4
127
+ #define PIN_SPI1_SCK PB3
128
+ #define PIN_SPI1_SS PA15
135
129
136
130
// Timer Definitions
137
131
// Use TIM6/TIM7 when possible as servo and tone don't need GPIO output pin
@@ -140,15 +134,9 @@ extern "C" {
140
134
141
135
// UART Definitions
142
136
// Define here Serial instance number to map on Serial generic name
143
- #define SERIAL_UART_INSTANCE 3 //ex: 2 for Serial2 (USART2)
144
- // DEBUG_UART could be redefined to print on another instance than 'Serial'
145
- //#define DEBUG_UART ((USART_TypeDef *) U(S)ARTX) // ex: USART3
146
- // DEBUG_UART baudrate, default: 9600 if not defined
147
- //#define DEBUG_UART_BAUDRATE x
148
- // DEBUG_UART Tx pin name, default: the first one found in PinMap_UART_TX for DEBUG_UART
149
- //#define DEBUG_PINNAME_TX PX_n // PinName used for TX
150
-
151
- // Default pin used for 'Serial' instance (ex: ST-Link)
137
+ #define SERIAL_UART_INSTANCE 3
138
+
139
+ // Default pin used for 'Serial' instance
152
140
// Mandatory for Firmata
153
141
#define PIN_SERIAL_RX PB11
154
142
#define PIN_SERIAL_TX PB10
0 commit comments