Commit 0cd6285
I2c reset functionality (espressif#678)
* Addition of a i2cReset method and timeout handling for the case where the i2c hardware FSM (state machine) gets stuck in a busy state.
* Use newly added i2cReset function within the wire library.1 parent 10ff1de commit 0cd6285Copy full SHA for 0cd6285
File tree
Expand file treeCollapse file tree
4 files changed
+47
-3
lines changedOpen diff view settings
Filter options
- cores/esp32
- libraries/Wire/src
Expand file treeCollapse file tree
4 files changed
+47
-3
lines changedOpen diff view settings
Collapse file
cores/esp32/esp32-hal-i2c.c
Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-i2c.c+35-2Lines changed: 35 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
| 21 | + |
21 | 22 | |
22 | 23 | |
23 | 24 | |
| ||
154 | 155 | |
155 | 156 | |
156 | 157 | |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
| 164 | + |
157 | 165 | |
158 | 166 | |
159 | 167 | |
| ||
221 | 229 | |
222 | 230 | |
223 | 231 | |
224 | | - |
| 232 | + |
225 | 233 | |
226 | 234 | |
227 | 235 | |
| ||
250 | 258 | |
251 | 259 | |
252 | 260 | |
| 261 | + |
| 262 | + |
| 263 | + |
| 264 | + |
| 265 | + |
| 266 | + |
| 267 | + |
253 | 268 | |
254 | 269 | |
255 | 270 | |
| ||
445 | 460 | |
446 | 461 | |
447 | 462 | |
| 463 | + |
| 464 | + |
| 465 | + |
| 466 | + |
448 | 467 | |
449 | | - |
| 468 | + |
| 469 | + |
450 | 470 | |
451 | 471 | |
| 472 | + |
| 473 | + |
| 474 | + |
| 475 | + |
| 476 | + |
| 477 | + |
| 478 | + |
| 479 | + |
| 480 | + |
| 481 | + |
| 482 | + |
| 483 | + |
| 484 | + |
Collapse file
cores/esp32/esp32-hal-i2c.h
Copy file name to clipboardExpand all lines: cores/esp32/esp32-hal-i2c.h+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
| ||
50 | 51 | |
51 | 52 | |
52 | 53 | |
| 54 | + |
53 | 55 | |
54 | 56 | |
55 | 57 | |
|
Collapse file
libraries/Wire/src/Wire.cpp
Copy file name to clipboardExpand all lines: libraries/Wire/src/Wire.cpp+7Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
211 | 211 | |
212 | 212 | |
213 | 213 | |
| 214 | + |
| 215 | + |
| 216 | + |
| 217 | + |
| 218 | + |
| 219 | + |
| 220 | + |
214 | 221 | |
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
| 75 | + |
| 76 | + |
75 | 77 | |
76 | 78 | |
77 | 79 | |
|
0 commit comments