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 83fefa7 commit de5825fCopy full SHA for de5825f
i2c.c
@@ -4,6 +4,7 @@
4
*
5
*/
6
7
+#include "board.h"
8
#include "bootmode.h"
9
#include "config.h"
10
#include "gpio.h"
@@ -328,6 +329,17 @@ static void i2c_rxdata(unsigned char offset, unsigned char value)
328
329
return sl28wdt_write(offset - 4, value);
330
case 16 ... 17:
331
return bootmode_write(offset - 16, value);
332
+ case 255:
333
+ /* this is just for debugging */
334
+ if (!(config->flags & CFG_F_DEBUG))
335
+ return;
336
+
337
+ switch (value) {
338
+ case 0:
339
+ return board_eth_reset();
340
+ case 1:
341
+ return board_sys_reset(false);
342
+ }
343
}
344
345
0 commit comments