Refactor serial class with templates (#20783)
This commit is contained in:
@@ -102,4 +102,11 @@ uint16_t HAL_adc_get_result() {
|
||||
return HAL_adc_result;
|
||||
}
|
||||
|
||||
// Forward the default serial port
|
||||
DefaultSerial MSerial(false, Serial);
|
||||
|
||||
DefaultSerial1 MSerial1(false, Serial1);
|
||||
DefaultSerial2 MSerial2(false, Serial2);
|
||||
DefaultSerial3 MSerial3(false, Serial3);
|
||||
|
||||
#endif // ARDUINO_ARCH_SAM
|
||||
|
||||
Reference in New Issue
Block a user