Check Ethernet before including lwipopts_conf.h

lwipopts_conf.h is used by target dependent Ethernet drivers for
configuring various parameters.
By default, Ethernet is enabled and in this case lwipopts_conf.h
will be included.
In case of PPP  being enabled, it is desirable to not pull in any Ethernet
related code.
pull/4523/head
Hasnain Virk 2017-06-12 09:57:16 +03:00
parent f31ea01237
commit d29e05896f
1 changed files with 2 additions and 0 deletions

View File

@ -19,7 +19,9 @@
#ifndef LWIPOPTS_H
#define LWIPOPTS_H
#if MBED_CONF_LWIP_ETHERNET_ENABLED
#include "lwipopts_conf.h"
#endif
// Workaround for Linux timeval
#if defined (TOOLCHAIN_GCC)