A copy of the mbed USBDevice with USBSerial library

Dependents:   STM32L0_LoRa Smartage STM32L0_LoRa Turtle_RadioShuttle

Files at this revision

API Documentation at this revision

Comitter:
Helmut Tschemernjak
Date:
Mon Feb 05 12:28:54 2018 +0100
Parent:
1:7d1a127a1d2b
Child:
3:bddd92cd3a17
Commit message:
Added compile FEATURE_USBSERIAL

Changed in this revision

USBDevice/USBDevice.cpp Show annotated file Show diff for this revision Revisions of this file
USBSerial/USBCDC.cpp Show annotated file Show diff for this revision Revisions of this file
USBSerial/USBSerial.cpp Show annotated file Show diff for this revision Revisions of this file
targets/TARGET_STM/USBHAL_STM32.cpp Show annotated file Show diff for this revision Revisions of this file
targets/TARGET_STM/USBHAL_STM32F4.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/USBDevice/USBDevice.cpp	Mon Feb 05 11:58:50 2018 +0100
+++ b/USBDevice/USBDevice.cpp	Mon Feb 05 12:28:54 2018 +0100
@@ -1,3 +1,8 @@
+#include "mbed.h"
+#include "PinMap.h"
+
+#ifdef FEATURE_USBSERIAL
+
 /* Copyright (c) 2010-2011 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
@@ -986,3 +991,5 @@
     };
     return stringIproductDescriptor;
 }
+
+#endif // FEATURE_USBSERIAL
--- a/USBSerial/USBCDC.cpp	Mon Feb 05 11:58:50 2018 +0100
+++ b/USBSerial/USBCDC.cpp	Mon Feb 05 12:28:54 2018 +0100
@@ -1,3 +1,8 @@
+#include "mbed.h"
+#include "PinMap.h"
+
+#ifdef FEATURE_USBSERIAL
+
 /* Copyright (c) 2010-2011 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
@@ -290,3 +295,5 @@
     };
     return configDescriptor;
 }
+
+#endif // FEATURE_USBSERIAL
--- a/USBSerial/USBSerial.cpp	Mon Feb 05 11:58:50 2018 +0100
+++ b/USBSerial/USBSerial.cpp	Mon Feb 05 12:28:54 2018 +0100
@@ -1,3 +1,8 @@
+#include "mbed.h"
+#include "PinMap.h"
+
+#ifdef FEATURE_USBSERIAL
+
 /* Copyright (c) 2010-2011 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
@@ -70,3 +75,5 @@
 bool USBSerial::connected() {
     return terminal_connected;
 }
+
+#endif // FEATURE_USBSERIAL
--- 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
--- a/targets/TARGET_STM/USBHAL_STM32F4.cpp	Mon Feb 05 11:58:50 2018 +0100
+++ b/targets/TARGET_STM/USBHAL_STM32F4.cpp	Mon Feb 05 12:28:54 2018 +0100
@@ -1,3 +1,8 @@
+#include "mbed.h"
+#include "PinMap.h"
+
+#ifdef FEATURE_USBSERIAL
+
 /* Copyright (c) 2010-2011 mbed.org, MIT License
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
@@ -414,3 +419,5 @@
 
 
 #endif
+
+#endif // FEATURE_USBSERIAL