3535#include " api/USBAPI.h"
3636#include " CDC.h"
3737
38- #if ARDUINO_API_VERSION > 10000
39- using namespace arduino ;
40- #endif
41-
4238// ================================================================================
4339// USB
4440
@@ -59,9 +55,9 @@ class USBDeviceClass {
5955 void standby ();
6056
6157 // 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);
6561
6662 // Control EndPoint API
6763 uint32_t sendControl (const void *data, uint32_t len);
@@ -100,7 +96,7 @@ extern USBDeviceClass USBDevice;
10096// ================================================================================
10197// Serial over CDC (Serial1 is the physical port)
10298
103- class Serial_ : public Stream , public arduino ::PluggableUSBModule
99+ class Serial_ : public arduino :: Stream, public arduino::PluggableUSBModule
104100{
105101public:
106102 Serial_ (USBDeviceClass &_usb);
@@ -163,8 +159,8 @@ class Serial_ : public Stream, public arduino::PluggableUSBModule
163159protected:
164160 // Implementation of the PUSBListNode
165161 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);
168164 uint8_t getShortName (char * name);
169165 void handleEndpoint (int ep);
170166 void enableInterrupt ();
0 commit comments