mattairtech / ArduinoCore-samd

This is a fork from arduino/ArduinoCore-samd on GitHub. This will be used to maintain Arduino support for SAM D|L|C (M0+ and M4F) boards including the MattairTech Xeno Mini and the MT-D21E (see https://www.mattairtech.com/). It adds support for new devices like the D51, L21, C21, and D11. It also adds new clock sources, like a high speed crystal or internal oscillator.
103 stars 43 forks source link

"Three_UART_One_Wire_No_SPI" mode failure with V1.6.16 and SAMD21E17 #13

Closed alejandroImagina closed 6 years ago

alejandroImagina commented 6 years ago

Hi, I've tried to use this mode with a SAMD21E17 and it fails to compile.

Searching in the library, I've found that in this mode, the Wire and the Third Serial share the SERCOM1 definition. I've already fixed it changing the definition of the Third Serial to use the SERCOM3 with it, and it works fine.

But is something it should be fixed ;)

Regards

mattairtech commented 6 years ago

This was fixed in the latest beta release (https://github.com/mattairtech/ArduinoCore-samd/commit/849cd47b4ff5f2e57171c37b8d9ad4b995f49df0). Note that to avoid other conflicts, I used SERCOM3 for wire when appropriate (rather than changing the third serial).