1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-04 15:24:12 +01:00
Commit Graph

14 Commits

Author SHA1 Message Date
Alice Pintus
d3065cbaeb add src folder when missing 2016-03-02 14:45:57 +01:00
Alice Pintus
8d3c4dbfec update sentences 2016-03-01 16:09:50 +01:00
Cristian Maglie
a7a12037c7 [HID] Added return value to HID SendReport (sam core) 2015-10-30 13:23:46 +01:00
Martino Facchin
775c82bbed SAM: add iSerial USB field 2015-10-21 16:16:52 +02:00
Martino Facchin
ddae105dc3 [HID] port to stable PluggableUSB API 2015-10-12 14:41:23 +02:00
Cristian Maglie
43d3428d2b [HID] Added missing const in length 2015-09-28 17:05:36 +02:00
Cristian Maglie
209b0796e6 [HID] added 'const' qualifier in HID initialization
See https://github.com/arduino/Arduino/pull/3840#discussion_r40438845
2015-09-28 13:32:01 +02:00
Cristian Maglie
fba6ca88ed [HID] fixed wrong datatype for descriptor len
See https://github.com/arduino/Arduino/pull/3840/files#r40438845
2015-09-28 13:23:12 +02:00
Cristian Maglie
401c4f0cf8 HID: merged HID_Descriptor into HIDDescriptorListNode
This simplifies the object model and produce a small gain in code
size and performance.
2015-09-22 16:51:30 +02:00
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
Cristian Maglie
949ef094f1 Added categories to libraries
Fix #3812
2015-09-18 11:01:08 +02:00
Martino Facchin
a5ad4744b5 fix OUT endpoints
was using only lower 8 bits of configuration registers
2015-09-04 10:03:40 +02:00
Martino Facchin
b2381506a2 sam: add HID library 2015-07-17 12:13:21 +02:00
Martino Facchin
af290fc5a3 rework HID-based libraries and add Due fallback 2015-07-16 13:13:53 +02:00