mirror of https://github.com/ARMmbed/mbed-os.git
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 disablepull/14418/head
parent
2da1972012
commit
811a72af88
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue