CMake: Fix EP_ATLAS build

Enable Onboard TELIT ME310 driver only when cellular library is included.

This allows us to remove the cellular library as a requirement

to build applications that do not require it (i.e Blinky).
pull/14418/head
Hugues Kamba 2021-03-11 13:27:08 +00:00
parent 8a19e3ecfc
commit 2da1972012
1 changed files with 4 additions and 0 deletions

View File

@ -15,6 +15,8 @@
* limitations under the License. * limitations under the License.
*/ */
#if MBED_CONF_CELLULAR_PRESENT
#include "gpio_api.h" #include "gpio_api.h"
#include "platform/mbed_thread.h" #include "platform/mbed_thread.h"
#include "PinNames.h" #include "PinNames.h"
@ -167,3 +169,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
static ONBOARD_TELIT_ME310 device(&serial); static ONBOARD_TELIT_ME310 device(&serial);
return &device; return &device;
} }
#endif // MBED_CONF_CELLULAR_PRESENT