1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-03 14:24:15 +01:00
Arduino/hardware/arduino/sam
Cristian Maglie f0cf13c89b HID: Renamed fields in HIDDescriptorListNode and HID_Descriptor
In particular HIDDescriptorListNode.cb has been renamed to
HIDDescriptorListNode.descriptor because it contains decriptor data
and not callbacks.

Moreover the HID_Descriptor.descriptor field has been renamed
to HID_Descriptor.data so the structure has now two fields length
and data.

   typedef struct __attribute__((packed)) {
     uint16_t length;
     const void* data;
   } HID_Descriptor;

   class HIDDescriptorListNode {
   public:
     HIDDescriptorListNode *next = NULL;
     const HID_Descriptor *descriptor;
     HIDDescriptorListNode(const HID_Descriptor *d) : descriptor(d) { }
   };

This imply a change in the use of the node from:

  node->cb->lenght
  node->cd->descriptor

to

  node->descriptor->length
  node->descriptor->data
2015-09-22 16:49:14 +02:00
..
cores/arduino SAM: fix pulseInLong timeout using micros() 2015-09-21 11:10:33 +02:00
firmwares/atmega16u2 Added old firmware for Arduino Due USB2Serial (atmega16u2) 2013-02-11 22:18:22 +01:00
libraries HID: Renamed fields in HIDDescriptorListNode and HID_Descriptor 2015-09-22 16:49:14 +02:00
system Due: Wire.setClock can be called at any time 2014-07-06 00:36:22 +02:00
variants/arduino_due_x Add Due watchdog functions; modified according to feedback supplied 2015-05-08 14:16:12 +02:00
boards.txt Disabling uncertified warning, leaving vids/pids 2015-04-27 10:55:16 +02:00
platform.txt Moved build artifacts into root build folder 2015-09-18 11:21:13 +02:00
programmers.txt Removed unused boards/programmers 2012-08-25 16:31:25 +02:00