We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e747aa commit a361a50Copy full SHA for a361a50
cores/arduino/SERCOM.cpp
@@ -168,6 +168,9 @@ uint8_t SERCOM::readDataUART()
168
169
int SERCOM::writeDataUART(uint8_t data)
170
{
171
+ //Make sure DRE is set before writing to DATA reg
172
+ while(!isDataRegisterEmptyUART());
173
+
174
//Put data into DATA register
175
sercom->USART.DATA.reg = (uint16_t)data;
176
return 1;
0 commit comments