ostaquet / Arduino-Nano-33-IoT-Ultimate-Guide

Arduino Nano 33 IoT - Ultimate guide
MIT License
195 stars 26 forks source link

Sercom mix-up #11

Open F14V opened 2 years ago

F14V commented 2 years ago

Hi, the variant.h contains the following:

extern SERCOM sercom0;
extern SERCOM sercom1;  // spi
extern SERCOM sercom2;  // spi nina
extern SERCOM sercom3;  // serial2
extern SERCOM sercom4;  // wire
extern SERCOM sercom5;  // serial1

While this documentation has:

Sercom1 is actually used for the normal SPI interface, Sercom3 is connected to the UART programming port of the NINA module and Sercom5 is the physical UART port, D0 and D1, it's not related to USB.