16
16
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
17
*/
18
18
19
- #ifndef _VARIANT_MERTO_M4_
20
- #define _VARIANT_MERTO_M4_
19
+ #ifndef _VARIANT_FEATHER_M4_
20
+ #define _VARIANT_FEATHER_M4_
21
21
22
22
// The definitions here needs a SAMD core >=1.6.10
23
23
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10610
@@ -128,13 +128,13 @@ static const uint8_t ATN = PIN_ATN;
128
128
// Serial1
129
129
#define PIN_SERIAL1_RX (0ul)
130
130
#define PIN_SERIAL1_TX (1ul)
131
- #define PAD_SERIAL1_TX (UART_TX_PAD_0)
132
131
#define PAD_SERIAL1_RX (SERCOM_RX_PAD_3)
132
+ #define PAD_SERIAL1_TX (UART_TX_PAD_2)
133
133
134
134
/*
135
135
* SPI Interfaces
136
136
*/
137
- #define SPI_INTERFACES_COUNT 2
137
+ #define SPI_INTERFACES_COUNT 1
138
138
139
139
#define PIN_SPI_MISO (28u)
140
140
#define PIN_SPI_MOSI (30u)
@@ -167,10 +167,10 @@ static const uint8_t SCK1 = PIN_SPI_SCK ;
167
167
*/
168
168
#define WIRE_INTERFACES_COUNT 1
169
169
170
- #define PIN_WIRE_SDA (24u )
171
- #define PIN_WIRE_SCL (25u )
172
- #define PERIPH_WIRE sercom5
173
- #define WIRE_IT_HANDLER SERCOM5_Handler
170
+ #define PIN_WIRE_SDA (26u )
171
+ #define PIN_WIRE_SCL (27u )
172
+ #define PERIPH_WIRE sercom3
173
+ #define WIRE_IT_HANDLER SERCOM3_Handler
174
174
175
175
static const uint8_t SDA = PIN_WIRE_SDA ;
176
176
static const uint8_t SCL = PIN_WIRE_SCL ;
@@ -185,7 +185,7 @@ static const uint8_t SCL = PIN_WIRE_SCL;
185
185
/*
186
186
* I2S Interfaces
187
187
*/
188
- #define I2S_INTERFACES_COUNT 1
188
+ #define I2S_INTERFACES_COUNT 0
189
189
190
190
#define I2S_DEVICE 0
191
191
#define I2S_CLOCK_GENERATOR 3
@@ -241,5 +241,5 @@ extern Uart Serial1;
241
241
#define SERIAL_PORT_HARDWARE Serial1
242
242
#define SERIAL_PORT_HARDWARE_OPEN Serial1
243
243
244
- #endif /* _VARIANT_MERTO_M4_ */
244
+ #endif /* _VARIANT_FEATHER_M4_ */
245
245
0 commit comments