A copy of the mbed USBDevice with USBSerial library

Dependents:   STM32L0_LoRa Smartage STM32L0_LoRa Turtle_RadioShuttle

Revision:
2:195554780c9b
Parent:
0:a3ea811f80f2
Child:
7:8a5cc0d9bfa2
--- a/targets/TARGET_STM/USBHAL_STM32.cpp	Mon Feb 05 11:58:50 2018 +0100
+++ b/targets/TARGET_STM/USBHAL_STM32.cpp	Mon Feb 05 12:28:54 2018 +0100
@@ -1,3 +1,8 @@
+#include "mbed.h"
+#include "PinMap.h"
+
+#ifdef FEATURE_USBSERIAL
+
 /* Copyright (c) 2017 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
@@ -329,3 +334,5 @@
 }
 
 #endif
+
+#endif // FEATURE_USBSERIAL