Skip to content

Commit 0386f73

Browse files
committed
Networking update: general refactoring, unifying EMAC
Initial work by Bartek Szatkowski in #4079, reworked following review of #5202 to transform the entire system into C++, retaining the basic functionality. Bartek's summary: * Porting ethernet to EMAC * Updating EMAC to enable multiple interfaces * Untangling networking classes, making the abstractions a bit clearer to follow, etc * General refactoring * Removal of DEVICE_EMAC flag and introducing DEVICE_ETH and DEVICE_WIFI Revisions since initial branch: * Remove lwip depencies * Correct doxygen warnings * Remove emac_api.h, replace with C++ EMAC abstract class. * Create OnboardNetworkInterface, and LWIP implementation. * Mappings since #4079 lwip-interface/nsapi_stack_lwip.c -> LWIPStack.cpp lwip-interface/ipstack_lwip.c -> LWIPInterface.cpp netsocket/mbed_ipstack.h -> OnboardNetworkStack.h hal/emac_api.h -> EMAC.h * Reinstate use of EthInterface abstraction * Correct and clarify HW address EMAC ops * Restore MBED_MAC_ADDR implementation * Integrate PPP support with LWIP::Interface. * Convert K64F lwIP driver to K64F_EMAC. To do: * Convert emac_stack_mem.h to follow this pattern. * Figure out DEVICE_ETH/EMAC * Update all drivers to use EMAC
1 parent db73ed0 commit 0386f73

28 files changed

+3312
-2732
lines changed

doxyfile_options

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,7 @@ PREDEFINED = DOXYGEN_ONLY \
20702070
DEVICE_CAN \
20712071
DEVICE_ETHERNET \
20722072
DEVICE_EMAC \
2073+
DEVICE_ETH \
20732074
DEVICE_FLASH \
20742075
DEVICE_I2C \
20752076
DEVICE_I2CSLAVE \

0 commit comments

Comments
 (0)