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
pull/14418/head
Hugues Kamba 2021-03-11 13:29:49 +00:00
parent 2da1972012
commit 811a72af88
1 changed files with 3 additions and 3 deletions

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)
{ {