adafruit / ArduinoCore-samd

116 stars 119 forks source link

Port some AVR Serial_ (SerialUSB) API's over #285

Closed myelin closed 3 years ago

myelin commented 3 years ago

This is a cherrypick of a commit by Sandeep Mistry from the upstream arduino/ArduinoCore-samd repository (tag 1.6.5 and later), that adds the following functions to the Serial_ class:

int32t Serial::readBreak(); unsigned long Serial_::baud(); uint8t Serial::stopbits(); uint8t Serial::paritytype(); uint8t Serial::numbits(); bool Serial::dtr(); bool Serial::rts();

I have a separate PR at https://github.com/adafruit/Adafruit_TinyUSB_ArduinoCore/pull/21 to add Serial_::dtr() to the TinyUSB version.

ladyada commented 3 years ago

thanks!