Commit 7366ed0
Flush wait for transmission to be complete
In previous version, flush wait for the transmission to be complete
by checking if the transmission holding register (or fifo) is empty.
When this happen, the last byte is still in the shift register,
and has still to be transmitted.
This mean we can't know when the transmission is actually complete,
which is crucial to implement RS485 communication, for example.
This commit change this behaviour and wait for the shift register to be empty,
which means the transmission is really complete.1 parent 48b0e58 commit 7366ed0
File tree
3 files changed
+15
-1
lines changed- cores/arduino
- system/libarc32_arduino101/drivers
3 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments