mirror of https://github.com/ARMmbed/mbed-os.git
in ODIN emac initialization required before connection
parent
0b14f1277e
commit
717abf20aa
|
@ -108,8 +108,10 @@ nsapi_error_t EmacTestNetworkStack::add_ethernet_interface(EMAC &emac, bool defa
|
||||||
{
|
{
|
||||||
// Test network stack supports only one interface
|
// Test network stack supports only one interface
|
||||||
TEST_ASSERT_MESSAGE(!m_interface, "Only one interface supported!");
|
TEST_ASSERT_MESSAGE(!m_interface, "Only one interface supported!");
|
||||||
|
#ifdef TARGET_UBLOX_EVK_ODIN_W2
|
||||||
m_interface = &EmacTestNetworkStack::Interface::get_instance();
|
emac_if_init();
|
||||||
|
#endif
|
||||||
|
m_interface = &EmacTestNetworkStack::Interface::get_instance();
|
||||||
TEST_ASSERT_MESSAGE(m_interface, "Invalid interface!");
|
TEST_ASSERT_MESSAGE(m_interface, "Invalid interface!");
|
||||||
|
|
||||||
m_interface->m_emac = &emac;
|
m_interface->m_emac = &emac;
|
||||||
|
|
Loading…
Reference in New Issue