aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-09-22HID: Renamed fields in HIDDescriptorListNode and HID_DescriptorCristian Maglie
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-21Modified reference to Leonardo only in the examplesArturo Guadalupi
According to #3786 removed the reference to Leonardo only in while(!Serial) of the examples. Changed in in "wait for serial port to connect. Needed for native USB port only"
2015-09-21Merge branch 'patch-7' of https://github.com/NicoHood/ArduinoCristian Maglie
2015-09-21Merge pull request #3825 from NicoHood/patch-6Martino Facchin
Remove Raw HID definitions at wrong place
2015-09-21pulseInLong: fix incorrect timeout handlingMartino Facchin
2015-09-20Fix CDC Serial buffer size determinationNico
2015-09-20Fix HW Serial buffer size determinationNico
2015-09-20Remove Raw HID definitions at wrong placeNico
2015-09-18Updating arduino-builder to 1.0.0-beta8Federico Fissore
2015-09-18Merge branch 'ethernet-dns-fix' of https://github.com/cmaglie/ArduinoCristian Maglie
2015-09-18Fixed wrong category in EEPROMCristian Maglie
See #3812
2015-09-18Moved build artifacts into root build folderCristian Maglie
The intermediate files used for build (.o, .a ...) are still in subfolders to avoid conflicts. Fix #3807
2015-09-18Added categories to librariesCristian Maglie
Fix #3812
2015-09-18Fixed wrong condition in turnOffPWM(..)Cristian Maglie
Fix #2163
2015-09-15Adding preprocessing recipes to AVR coreFederico Fissore
2015-09-15Updating arduino-builder to 1.0.0-beta4Federico Fissore
2015-09-10Merge pull request #3542 from facchinm/plugUSB_samMartino Facchin
Add pluggableUSB capabilities to SAM core
2015-09-09Added IPAddress::fromString(....) functionCristian Maglie
2015-09-01...and also a leading ','... (oops 2)Cristian Maglie
See #2408
2015-09-01Added missing #ifdef in WInterrupts.c... (oops)Cristian Maglie
See #2408
2015-08-31Added EXTERNAL_NUM_INTERRUPTS for AVR xxU2 seriesCristian Maglie
2015-08-31AVR: Faster Interrupts, no size change.Andrew J. Kroll
Fixes #2408
2015-08-27Release new boards as AVR core 1.6.8Cristian Maglie
2015-08-27Added support to Genuino boards (drivers, boards.txt entries, bootloaders)Cristian Maglie
2015-08-26Wire (AVR): Fix bug with repeated STARTNate Williams
Fix #66
2015-08-25implement Wire.end() for AVR coreSandeep Mistry
2015-08-15Tone: Added missing breakonovy
2015-08-14Merge branch 'cdc-settings' of https://github.com/matthijskooijman/ArduinoCristian Maglie
2015-08-13Merge pull request #3640 from NicoHood/USB-Core-FixesMartino Facchin
Usb core fixes
2015-08-12Added u2 Series supportNicoHood
2015-08-12Precised USB Endpoint definitionsNicoHood
2015-08-12Added 16 byte endpoint supportNicoHood
2015-08-12Fixed HID Reports >255 bytesNicoHood
2015-08-12Added missing static inline to USB Recv functionNicoHood
2015-08-12Made Magic Key Settings more flexibleNicoHood
2015-08-12Print not Aborting on Write() failureChuck Todd
Print::write(const uint8_t *buffer, size_t size) and Print::print(const __FlashStringHelper *ifsh) would continue calling write(char) after a failed write(char) this behavior would render returned count unuseable see arduino/Arduino issue #3614
2015-07-31Fix links to 3rd party hardware specification.Reilly Grant
The number of hyphens in this URL has apparently changed.
2015-07-31Add Serial_::availableForWrite().Peter Van Hoyweghen
This makes the CDC "Serial" object on the Leonardo and similar boards support this recently introduced method as well. The CDC code in the sam core is not changed.
2015-07-31Prevent losing bytes in HardwareSerial::end()Matthijs Kooijman
end() already waited for the buffer to be empty, but then there could still be two bytes in the hardware registers that still need to be transmitted (which were dropped or kept in the buffer, depending on the exact timing). This changes the wait loop to a call to the flush() function, which already takes care of really waiting for all bytes to be transmitted, meaning it is safe to turn off the transmitter.
2015-07-31Add Serial_::readBreak() to process SEND_BREAK requestsMatthijs Kooijman
This allows detecting when the USB host sends a break request and what the value of the request was. See the comments in USBAPI.h for details. This just modifies the avr core, not the sam core.
2015-07-31Expose serial settings from CDC virtual serial portMatthijs Kooijman
This allows a sketch to find out the settings chosen by the USB host (computer) and act accordingly. Other than reading the DTR flag and checking if the baudrate is 1200, the regular CDC code doesn't actually use any of these settings. By exposing these settings to the sketch, it can for example copy them to the hardware UART, turning the Leonardo into a proper USB-to-serial device. This can be useful to let the computer directly talk to whatever device is connected to the hardware serial port (like an XBee module). The Teensy core already supported these methods. This code was independently developed, but the method names were chosen to match the Teensy code, for compatibility (except that `dtr()` and `rtr()` return `bool`, while the Teensy version return a `uint8_t`). This change is applied to both the avr and sam cores, which have a very similar CDC implementation.
2015-07-16rework HID-based libraries and add Due fallbackMartino Facchin
2015-07-16allow HID submodules to create runtime descriptorsMartino Facchin
with this PR you can add \#include Keyboard.h \#include Mouse.h \#include HID.h in the top of the sketch and you will expose a Mouse+Keyboard From the library pow, simply add static HID_Descriptor cb = { .length = sizeof(_hidReportDescriptor), .descriptor = _hidReportDescriptor, }; static HIDDescriptorListNode node(&cb); HID.AppendDescriptor(&node); in the class' constructor and you are done!
2015-07-16fix pluggableUSB linked listMartino Facchin
2015-07-16save RAM content overridden by bootloader magicMartino Facchin
and restore it in case of aborted reboot use RAMEND-1 as suggested by @yyyc514 in PR #2474 of course it's not a real solution but we cannot force everyone to update the bootloader using an external programmer
2015-07-16rework HID class functions scopesMartino Facchin
2015-07-16rename Setup typedef struct to USBSetupMartino Facchin
was really too common
2015-07-16fix HID headersMartino Facchin
2015-07-16fix HID descriptors bigger than 127 bytesMartino Facchin
2015-07-16Add support for waking up a host via USB HIDMartino Facchin
this is a rework of commit fbcf94801b8bba7f1c8c79cc7ae402b6b9dbb2d3