Commit d2db949
committed
[Time] delayMicroseconds() accuracy
delayMicroseconds() should not rely to getCurrentMicros()
and should only compute required ticks for the delay
requested.
This allow to use it even if interrupts are disabled.
Example for OneWire library.
Fixes #412
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>1 parent dfaace5 commit d2db949
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
74 | 86 | | |
75 | 87 | | |
76 | 88 | | |
| |||
0 commit comments