From 56a223e3f4fb14a55cad28da1d64830cc94b8098 Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Fri, 30 Sep 2016 19:00:04 +0100 Subject: [PATCH] emac interface - typedef should be available for non-emac targets As it's required by lwip_bringup function --- hal/hal/emac_api.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hal/hal/emac_api.h b/hal/hal/emac_api.h index 9f1db4a1ec..bebd56f707 100644 --- a/hal/hal/emac_api.h +++ b/hal/hal/emac_api.h @@ -19,6 +19,7 @@ #include "platform.h" + #if DEVICE_EMAC #include @@ -154,5 +155,9 @@ typedef struct emac_interface { void *hw; } emac_interface_t; +#else + +typedef void *emac_interface_t; + #endif /* DEVICE_EMAC */ #endif /* MBED_EMAC_API_H */