35
35
#include " api/USBAPI.h"
36
36
#include " CDC.h"
37
37
38
- #if ARDUINO_API_VERSION > 10000
39
- using namespace arduino ;
40
- #endif
41
-
42
38
// ================================================================================
43
39
// USB
44
40
@@ -59,9 +55,9 @@ class USBDeviceClass {
59
55
void standby ();
60
56
61
57
// Setup API
62
- bool handleClassInterfaceSetup (USBSetup &setup);
63
- bool handleStandardSetup (USBSetup &setup);
64
- bool sendDescriptor (USBSetup &setup);
58
+ bool handleClassInterfaceSetup (arduino:: USBSetup &setup);
59
+ bool handleStandardSetup (arduino:: USBSetup &setup);
60
+ bool sendDescriptor (arduino:: USBSetup &setup);
65
61
66
62
// Control EndPoint API
67
63
uint32_t sendControl (const void *data, uint32_t len);
@@ -100,7 +96,7 @@ extern USBDeviceClass USBDevice;
100
96
// ================================================================================
101
97
// Serial over CDC (Serial1 is the physical port)
102
98
103
- class Serial_ : public Stream , public arduino ::PluggableUSBModule
99
+ class Serial_ : public arduino :: Stream, public arduino::PluggableUSBModule
104
100
{
105
101
public:
106
102
Serial_ (USBDeviceClass &_usb);
@@ -163,8 +159,8 @@ class Serial_ : public Stream, public arduino::PluggableUSBModule
163
159
protected:
164
160
// Implementation of the PUSBListNode
165
161
int getInterface (uint8_t * interfaceNum);
166
- int getDescriptor (USBSetup& setup);
167
- bool setup (USBSetup& setup);
162
+ int getDescriptor (arduino:: USBSetup& setup);
163
+ bool setup (arduino:: USBSetup& setup);
168
164
uint8_t getShortName (char * name);
169
165
void handleEndpoint (int ep);
170
166
void enableInterrupt ();
0 commit comments