forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: ethernet: enc28j60: Added carrier status update functionality
Expanded the enc28j60 driver to update its carrier status whenever the Ethernet cable is plugged in or out. I used the enc424j600 driver as reference, as this driver already included this functionality. The driver will now take the interface offline whenever the cable is not plugged in and stop sending packets. The respective events are also generated for use in the application. I tested it locally on my nRF52840 based gateway board using the enc28j60 network chip. Everything worked as expected. Signed-off-by: Paul Jans <[email protected]> Fixes zephyrproject-rtos#51214
- Loading branch information
1 parent
f460c21
commit e35ce37
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters