mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
[PUSB] epType array is now part of HID class
This commit is contained in:
parent
2d70691dbe
commit
9acbbe63c0
@ -110,15 +110,11 @@ bool HID_::setup(USBSetup& setup, uint8_t i)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX: I've found no way to pass literal value directly in
|
HID_::HID_(void) : PUSBListNode(1, 1, epType),
|
||||||
// the PUSBListNode constructor
|
|
||||||
static uint8_t epTypeDef[] = { EP_TYPE_INTERRUPT_IN };
|
|
||||||
|
|
||||||
HID_::HID_(void) : PUSBListNode(1, 1, epTypeDef),
|
|
||||||
rootNode(NULL), sizeof_hidReportDescriptor(0),
|
rootNode(NULL), sizeof_hidReportDescriptor(0),
|
||||||
modules_count(0), protocol(1), idle(1)
|
modules_count(0), protocol(1), idle(1)
|
||||||
{
|
{
|
||||||
// XXX: Shall this be done in PUSBListNode(...) constructor?
|
epType[0] = EP_TYPE_INTERRUPT_IN;
|
||||||
PluggableUSB.plug(this);
|
PluggableUSB.plug(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,6 +88,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
HIDDescriptor hidInterface;
|
HIDDescriptor hidInterface;
|
||||||
|
uint8_t epType[1];
|
||||||
|
|
||||||
HIDDescriptorListNode* rootNode;
|
HIDDescriptorListNode* rootNode;
|
||||||
uint16_t sizeof_hidReportDescriptor;
|
uint16_t sizeof_hidReportDescriptor;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user