Skip to content

Commit 5f8ee0c

Browse files
authored
Merge pull request #20 from arduino/eth-reset
Ensure Ethernet is not uder reset
2 parents 2df45ce + 0d9c945 commit 5f8ee0c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/board.h

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
#define BOARD_BLUE_LED PK_7
7575

7676
#define BOARD_USB_RESET PJ_4
77+
#define BOARD_ETH_RESET PJ_15
7778
#define BOARD_BOOT_SEL PI_8
7879

7980
#define BOARD_I2C_SCL PB_6

app/main.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,9 @@ int main(void) {
241241
DigitalOut video_reset(BOARD_VIDEO_RESET, 0);
242242
#endif
243243

244-
//Ticker pulse;
245-
//DigitalOut eth_rst(PJ_15, 1);
244+
#if defined (BOARD_ETH_RESET)
245+
DigitalOut eth_reset(BOARD_ETH_RESET, 1);
246+
#endif
246247

247248
HAL_FLASH_Unlock();
248249

0 commit comments

Comments
 (0)