Skip to content

Commit 5871530

Browse files
committed
working on getting sercoms working. i2c OK. serial is not :(
1 parent e8b316c commit 5871530

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

variants/feather_m4/variant.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
1717
*/
1818

19-
#ifndef _VARIANT_MERTO_M4_
20-
#define _VARIANT_MERTO_M4_
19+
#ifndef _VARIANT_FEATHER_M4_
20+
#define _VARIANT_FEATHER_M4_
2121

2222
// The definitions here needs a SAMD core >=1.6.10
2323
#define ARDUINO_SAMD_VARIANT_COMPLIANCE 10610
@@ -128,13 +128,13 @@ static const uint8_t ATN = PIN_ATN;
128128
// Serial1
129129
#define PIN_SERIAL1_RX (0ul)
130130
#define PIN_SERIAL1_TX (1ul)
131-
#define PAD_SERIAL1_TX (UART_TX_PAD_0)
132131
#define PAD_SERIAL1_RX (SERCOM_RX_PAD_3)
132+
#define PAD_SERIAL1_TX (UART_TX_PAD_2)
133133

134134
/*
135135
* SPI Interfaces
136136
*/
137-
#define SPI_INTERFACES_COUNT 2
137+
#define SPI_INTERFACES_COUNT 1
138138

139139
#define PIN_SPI_MISO (28u)
140140
#define PIN_SPI_MOSI (30u)
@@ -167,10 +167,10 @@ static const uint8_t SCK1 = PIN_SPI_SCK ;
167167
*/
168168
#define WIRE_INTERFACES_COUNT 1
169169

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
174174

175175
static const uint8_t SDA = PIN_WIRE_SDA;
176176
static const uint8_t SCL = PIN_WIRE_SCL;
@@ -185,7 +185,7 @@ static const uint8_t SCL = PIN_WIRE_SCL;
185185
/*
186186
* I2S Interfaces
187187
*/
188-
#define I2S_INTERFACES_COUNT 1
188+
#define I2S_INTERFACES_COUNT 0
189189

190190
#define I2S_DEVICE 0
191191
#define I2S_CLOCK_GENERATOR 3
@@ -241,5 +241,5 @@ extern Uart Serial1;
241241
#define SERIAL_PORT_HARDWARE Serial1
242242
#define SERIAL_PORT_HARDWARE_OPEN Serial1
243243

244-
#endif /* _VARIANT_MERTO_M4_ */
244+
#endif /* _VARIANT_FEATHER_M4_ */
245245

0 commit comments

Comments
 (0)