Merge pull request #14418 from hugueskamba/hk_cmake_fix_ep_atlas

EP_ATLAS: Fix mbedtools build errors
pull/14429/head
Martin Kojtal 2021-03-15 10:06:59 +01:00 committed by GitHub
commit 68fb11e912
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 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

View File

@ -16,15 +16,15 @@
* limitations under the License. * limitations under the License.
*/ */
#include "USBSerial.h"
#include "platform/mbed_retarget.h"
#ifndef MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE #ifndef MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE
#define MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE 0 #define MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE 0
#endif #endif
#if MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE #if MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE
#include "USBSerial.h"
#include "platform/mbed_retarget.h"
/* Retarget stdio to USBSerial */ /* Retarget stdio to USBSerial */
mbed::FileHandle *mbed::mbed_target_override_console(int fd) mbed::FileHandle *mbed::mbed_target_override_console(int fd)
{ {