Skip to content

Commit 36c34c5

Browse files
committed
EP_ATLAS: Remove requirement for USB library if not required
Move inclusion of USB header file within the existing conditional pre-processor directive so the USB library is not required if USB stdio console is disable
1 parent 707c5a3 commit 36c34c5

File tree

1 file changed

+3
-3
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/TARGET_EP_ATLAS

1 file changed

+3
-3
lines changed

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)