complete rename
This commit is contained in:
5 files changed
+14
-15
No files matched your search
@@ -28,7 +28,7 @@
|
||||
#include "tusb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include "Adafruit_USBDevice.h"
|
||||
#include "Adafruit_USBD_Device.h"
|
||||
#include "Adafruit_USBD_CDC.h"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -24,9 +24,8 @@
|
||||
|
||||
#ifdef NRF52840_XXAA
|
||||
|
||||
#include "Adafruit_USBD_CDC.h"
|
||||
#include "Arduino.h"
|
||||
#include "tusb.h"
|
||||
#include "Adafruit_USBD_CDC.h"
|
||||
|
||||
#define EPOUT 0x00
|
||||
#define EPIN 0x80
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#ifndef ADAFRUIT_USBD_CDC_H_
|
||||
#define ADAFRUIT_USBD_CDC_H_
|
||||
|
||||
#include "Adafruit_USBDevice.h"
|
||||
#include "Adafruit_USBD_Device.h"
|
||||
#include "Stream.h"
|
||||
|
||||
class Adafruit_USBD_CDC : public Stream, Adafruit_USBD_Interface
|
||||
|
||||
+5
-5
@@ -24,7 +24,7 @@
|
||||
|
||||
#ifdef NRF52840_XXAA
|
||||
|
||||
#include "Adafruit_USBDevice.h"
|
||||
#include "Adafruit_USBD_Device.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
@@ -66,9 +66,9 @@ tud_desc_set_t tud_desc_set =
|
||||
|
||||
} // extern C
|
||||
|
||||
Adafruit_TinyUSB_Device USBDevice;
|
||||
Adafruit_USBD_Device USBDevice;
|
||||
|
||||
Adafruit_TinyUSB_Device::Adafruit_TinyUSB_Device(void)
|
||||
Adafruit_USBD_Device::Adafruit_USBD_Device(void)
|
||||
{
|
||||
tusb_desc_device_t desc_dev =
|
||||
{
|
||||
@@ -131,7 +131,7 @@ Adafruit_TinyUSB_Device::Adafruit_TinyUSB_Device(void)
|
||||
// Add interface descriptor
|
||||
// - Interface number will be updated to match current count
|
||||
// - Endpoint number is updated to be unique
|
||||
bool Adafruit_TinyUSB_Device::addInterface(Adafruit_USBD_Interface& itf)
|
||||
bool Adafruit_USBD_Device::addInterface(Adafruit_USBD_Interface& itf)
|
||||
{
|
||||
uint8_t* desc = _desc_cfg+_desc_cfglen;
|
||||
uint16_t len = itf.getDescriptor(desc, sizeof(_desc_cfg)-_desc_cfglen);
|
||||
@@ -173,7 +173,7 @@ bool Adafruit_TinyUSB_Device::addInterface(Adafruit_USBD_Interface& itf)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Adafruit_TinyUSB_Device::begin(uint16_t vid, uint16_t pid)
|
||||
bool Adafruit_USBD_Device::begin(uint16_t vid, uint16_t pid)
|
||||
{
|
||||
_desc_device.idVendor = vid;
|
||||
_desc_device.idProduct = pid;
|
||||
+6
-6
@@ -22,8 +22,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef ADAFRUIT_USBDEVICE_H_
|
||||
#define ADAFRUIT_USBDEVICE_H_
|
||||
#ifndef ADAFRUIT_USBD_DEVICE_H_
|
||||
#define ADAFRUIT_USBD_DEVICE_H_
|
||||
|
||||
#include "tusb.h"
|
||||
|
||||
@@ -33,7 +33,7 @@ class Adafruit_USBD_Interface
|
||||
virtual uint16_t getDescriptor(uint8_t* buf, uint16_t bufsize) = 0;
|
||||
};
|
||||
|
||||
class Adafruit_TinyUSB_Device
|
||||
class Adafruit_USBD_Device
|
||||
{
|
||||
private:
|
||||
tusb_desc_device_t _desc_device;
|
||||
@@ -47,13 +47,13 @@ class Adafruit_TinyUSB_Device
|
||||
uint8_t _epout_count;
|
||||
|
||||
public:
|
||||
Adafruit_TinyUSB_Device(void);
|
||||
Adafruit_USBD_Device(void);
|
||||
|
||||
bool addInterface(Adafruit_USBD_Interface& itf);
|
||||
|
||||
bool begin(uint16_t vid, uint16_t pid);
|
||||
};
|
||||
|
||||
extern Adafruit_TinyUSB_Device USBDevice;
|
||||
extern Adafruit_USBD_Device USBDevice;
|
||||
|
||||
#endif /* ADAFRUIT_USBDEVICE_H_ */
|
||||
#endif /* ADAFRUIT_USBD_DEVICE_H_ */
|
||||
Reference in new issue
Block a user