Skip to content

Networking update: general refactoring, unifying EMAC #5558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Feb 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion TESTS/netsocket/connectivity/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@

using namespace utest::v1;

// Avoid creating the interface twice
static NetworkInterface *get_interface()
{
static NetworkInterface *interface = MBED_CONF_APP_OBJECT_CONSTRUCTION;

return interface;
}

// Bringing the network up and down
template <int COUNT>
void test_bring_up_down() {
NetworkInterface* net = MBED_CONF_APP_OBJECT_CONSTRUCTION;
NetworkInterface* net = get_interface();

for (int i = 0; i < COUNT; i++) {
int err = MBED_CONF_APP_CONNECT_STATEMENT;
Expand Down
1 change: 1 addition & 0 deletions doxyfile_options
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,7 @@ PREDEFINED = DOXYGEN_ONLY \
DEVICE_CAN \
DEVICE_ETHERNET \
DEVICE_EMAC \
DEVICE_ETH \
DEVICE_FLASH \
DEVICE_I2C \
DEVICE_I2CSLAVE \
Expand Down
1 change: 1 addition & 0 deletions features/FEATURE_LWIP/lwip-interface/.mbedignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ lwip/src/apps/*
lwip/src/netif/lwip_slipif.c
lwip/src/include/lwip/apps/*
lwip/src/include/posix/*
lwip-eth/*
Loading