Skip to content

Commit 68fb11e

Browse files
authored
Merge pull request #14418 from hugueskamba/hk_cmake_fix_ep_atlas
EP_ATLAS: Fix mbedtools build errors
2 parents 9d48bfe + 811a72a commit 68fb11e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/ONBOARD_TELIT_ME310.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* limitations under the License.
1616
*/
1717

18+
#if MBED_CONF_CELLULAR_PRESENT
19+
1820
#include "gpio_api.h"
1921
#include "platform/mbed_thread.h"
2022
#include "PinNames.h"
@@ -167,3 +169,5 @@ CellularDevice *CellularDevice::get_target_default_instance()
167169
static ONBOARD_TELIT_ME310 device(&serial);
168170
return &device;
169171
}
172+
173+
#endif // MBED_CONF_CELLULAR_PRESENT

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS/usb_stdio.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
* limitations under the License.
1717
*/
1818

19-
#include "USBSerial.h"
20-
#include "platform/mbed_retarget.h"
21-
2219
#ifndef MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE
2320
#define MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE 0
2421
#endif
2522

2623
#if MBED_CONF_EP_ATLAS_ENABLE_USB_STDIO_CONSOLE
2724

25+
#include "USBSerial.h"
26+
#include "platform/mbed_retarget.h"
27+
2828
/* Retarget stdio to USBSerial */
2929
mbed::FileHandle *mbed::mbed_target_override_console(int fd)
3030
{

0 commit comments

Comments
 (0)