rename Adafruit_USBDev_Interface
This commit is contained in:
5 files changed
+6
-6
No files matched your search
+1
-1
@@ -96,7 +96,7 @@ int main( void )
|
||||
initVariant();
|
||||
|
||||
#ifdef NRF52840_XXAA
|
||||
USBDevice.addInterface( (Adafruit_USBInterface&) Serial);
|
||||
USBDevice.addInterface( (Adafruit_USBDev_Interface&) Serial);
|
||||
USBDevice.begin(USB_VID, USB_PID);
|
||||
usb_init();
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "Adafruit_USBDevice.h"
|
||||
#include "Stream.h"
|
||||
|
||||
class Adafruit_USBDev_CDC : public Stream, Adafruit_USBInterface
|
||||
class Adafruit_USBDev_CDC : public Stream, Adafruit_USBDev_Interface
|
||||
{
|
||||
public:
|
||||
Adafruit_USBDev_CDC(void);
|
||||
|
||||
@@ -136,7 +136,7 @@ Adafruit_USBDevice::Adafruit_USBDevice(void)
|
||||
// Add interface descriptor
|
||||
// - Interface number will be updated to match current count
|
||||
// - Endpoint number is updated to be unique
|
||||
bool Adafruit_USBDevice::addInterface(Adafruit_USBInterface& itf)
|
||||
bool Adafruit_USBDevice::addInterface(Adafruit_USBDev_Interface& itf)
|
||||
{
|
||||
uint8_t* desc = _desc_cfg+_desc_cfglen;
|
||||
uint16_t len = itf.getDescriptor(desc, sizeof(_desc_cfg)-_desc_cfglen);
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "tusb.h"
|
||||
|
||||
class Adafruit_USBInterface
|
||||
class Adafruit_USBDev_Interface
|
||||
{
|
||||
public:
|
||||
virtual uint16_t getDescriptor(uint8_t* buf, uint16_t bufsize) = 0;
|
||||
@@ -49,7 +49,7 @@ class Adafruit_USBDevice
|
||||
public:
|
||||
Adafruit_USBDevice(void);
|
||||
|
||||
bool addInterface(Adafruit_USBInterface& itf);
|
||||
bool addInterface(Adafruit_USBDev_Interface& itf);
|
||||
|
||||
bool begin(uint16_t vid, uint16_t pid);
|
||||
};
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include "Adafruit_USBDevice.h"
|
||||
|
||||
class Adafruit_USBDev_MSC : Adafruit_USBInterface
|
||||
class Adafruit_USBDev_MSC : Adafruit_USBDev_Interface
|
||||
{
|
||||
private:
|
||||
|
||||
|
||||
Reference in new issue
Block a user