Commit 0c59e71
Fix assertion failure when disconnecting the Ethernet cable (NXP1060 - NetworkInterface.c) (#1002)
* Update NetworkInterface.c
The changes that I'm proposing are to make the driver to work in case of cable disconnection.
In prvEMACHandlerTask, when xSendEventStructToIPTask, we have to pass network interface or it will fail the assertion in xSendEventStructToIPTask "configASSERT( pxInterface != NULL )".
In pxNXP1064_NetworkInterfaceInitialise, if xWaitPHY fails (for instance, the cable is not connected), the switch case will break without doing nothing and the prvEMACHandlerTask will be blocked waiting for the notification. We have to unblock it to try again in case of failure in xEMAC_WaitPHY.
* Update NetworkInterface.c
uncrustify code
* Update NetworkInterface.c
Correct indentation
* Update NetworkInterface.c
Correct indentation
* Update NetworkInterface.c
fix indentation... again
* Update source/portable/NetworkInterface/NXP1060/NetworkInterface.c
Co-authored-by: ActoryOu <jay2002824@gmail.com>
* Update source/portable/NetworkInterface/NXP1060/NetworkInterface.c
Co-authored-by: ActoryOu <jay2002824@gmail.com>
---------
Co-authored-by: ActoryOu <jay2002824@gmail.com>1 parent 20d30d9 commit 0c59e71
1 file changed
+9
-4
lines changedLines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
350 | 355 | | |
351 | 356 | | |
352 | 357 | | |
| |||
370 | 375 | | |
371 | 376 | | |
372 | 377 | | |
373 | | - | |
| 378 | + | |
374 | 379 | | |
375 | 380 | | |
376 | 381 | | |
| |||
505 | 510 | | |
506 | 511 | | |
507 | 512 | | |
508 | | - | |
| 513 | + | |
509 | 514 | | |
510 | 515 | | |
511 | 516 | | |
| |||
568 | 573 | | |
569 | 574 | | |
570 | 575 | | |
571 | | - | |
| 576 | + | |
572 | 577 | | |
573 | 578 | | |
574 | 579 | | |
575 | 580 | | |
576 | 581 | | |
577 | | - | |
| 582 | + | |
578 | 583 | | |
579 | 584 | | |
580 | 585 | | |
| |||
0 commit comments