aboutsummaryrefslogtreecommitdiff
path: root/libraries
AgeCommit message (Collapse)Author
2015-10-02[PUSB] Moved static members inside HID_ classCristian Maglie
This commit prepares for the next refactoring
2015-10-02[PUSB] replaced u8 with uint8_tCristian Maglie
2015-10-02[PUSB] Selected interface and endpoint are now part of PUSBListNodeCristian Maglie
The method int8_t PluggableUSB::addFunction(PUSBListNode *, uint8_t *) has been changed to bool PluggableUSB::plug(PUSBListNode *node) since both EP and Interfaces are now saved directly into node
2015-10-02[HID] Now HID extends directly PluggableUSBListNodeCristian Maglie
This avoid duplicate instatiation of callback and save a considerable amount of flash.
2015-10-02[PUSB] Global functions PUSB_* are now methods of PluggableUSB classCristian Maglie
2015-10-02[PUSB] PUSBCallback struct has been merged into PUSBListNodeCristian Maglie
This slightly simplifies PluggableUSB API.
2015-09-28[HID] Added missing return in HID.begin()Cristian Maglie
2015-09-28[HID] Changed 'u8' to 'uint8_t' in definitionsCristian Maglie
2015-09-28[HID] added 'const' qualifier in HID initializationCristian Maglie
See https://github.com/arduino/Arduino/pull/3840#discussion_r40438845
2015-09-28Merge branch 'pluggable_hid_impr' of https://github.com/cmaglie/ArduinoCristian Maglie
2015-09-28Added Arduino Zero exclusion to READMEArturo Guadalupi
2015-09-22HID: merged HID_Descriptor into HIDDescriptorListNodeCristian Maglie
This simplifies the object model and produce a small gain in code size and performance.
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-20Remove Raw HID definitions at wrong placeNico
2015-09-18Fixed wrong category in EEPROMCristian Maglie
See #3812
2015-09-18Added categories to librariesCristian Maglie
Fix #3812
2015-08-26Wire (AVR): Fix bug with repeated STARTNate Williams
Fix #66
2015-08-25implement Wire.end() for AVR coreSandeep Mistry
2015-08-12Added 16 byte endpoint supportNicoHood
2015-08-12Fixed HID Reports >255 bytesNicoHood
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-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-16move HID library to AVR specific locationMartino Facchin
2015-07-06Examples: mass code format. See example_formatter.confFederico Fissore
2015-07-03Support for repeated starts added to SAM Wire libraryMatthew Lowe
Additional interface method ported to avr for compatibility Fix issue #2428.
2015-05-20Due to website configuration changes, every url starting with ↵Federico Fissore
http://arduino.cc has been changed to http://www.arduino.cc. Fixes #3191
2015-05-19Libraries bundled with cores will take the type of that core, instead of ↵Federico Fissore
relying on an undocumented 'types' property. Fixes #2875
2015-05-14Fixes #2969:Arturo Guadalupi
This fixes the Wire examples that uses I2C reserved address (from 0 to 7) substituting them with 8 that is the first one available and that can be used. I also modified the wire reference http://www.arduino.cc/en/reference/wire according to this fact.
2015-03-27LibraryManager: better type filteringFederico Fissore
2015-03-24Merge pull request #2812 from facchinm/test_pr2794Martino Facchin
EEPROM library V2
2015-03-24EEPROM: examples: fix Serial for board LeonardoMartino Facchin
2015-03-24Fixed EEPROM examples and added readmeChris--A
2015-03-20Updated EEPROM examples.Chris--A
Removed hard coded lengths, which were incorrect for standard Arduino's now.
2015-03-19Small tweaks to EEPROM lib and examples.Chris--A
2015-03-18Do not influence state of SS if it's already been set to an output ↵Victor Aprea
previously, e.g. by user sketch squashes and closes PR #2659
2015-03-18Updated EEPROM storage classChris--A
To avoid having a .cpp just for an extern variable definition, `static` has been chosen over `extern`. As the `EEPROMClass` class simply wraps functionality located elsewhere, it is completely compiled away. Even though each translation unit which includes the header will get a copy with internal linkage, there is no associated overhead. More info [here](http://stackoverflow.com/questions/29098518/extern-variable-only-in-header-unexpectedly-working-why)
2015-03-17Added additional examples to EEPROM libChris--A
2015-03-17Added new version of EEPROM library.Chris--A
2015-03-05Merge branch 'ide-1.5.x' into SoftwareSerialMartino Facchin
2015-03-05SoftwareSerial: match bool API with HardwareSerialMartino Facchin
2015-02-05Corrected some email contacts.Cristian Maglie
2015-01-26Prevent low pulse on TX initialization in SoftwareSerialMatthijs Kooijman
Previously, the TX pin would be set to output first and then written high (assuming non-inverted logic). When the pin was previously configured for input without pullup (which is normal reset state), this results in driving the pin low for a short when initializing. This could accidenttally be seen as a stop bit by the receiving side. By first writing HIGH and then setting the mode to OUTPUT, the pin will have its pullup enabled for a short while, which is harmless.
2015-01-26Remove unneeded #ifdef in SoftwareSerialMatthijs Kooijman
The debugPulse function definition already checks for _DEBUG, resulting in an empty function definiton and the function call being optimized away.
2015-01-26Fix SoftwareSerial timingsMatthijs Kooijman
Instead of using a lookup table with (wrong) timings, this calculates the timings in SoftwareSerial::begin. This is probably a bit slower, but since it typically happens once, this shouldn't be a problem. Additionally, since the lookup tables can be removed, this is also a lot smaller, as well as supporting arbitrary CPU speeds and baudrates, instead of the limited set that was defined before. Furthermore, this switches to use the _delay_loop_2 function from avr-libc instead of a handcoded delay function. The avr-libc function only takes two instructions, as opposed to four instructions for the old one. The compiler also inlines the avr-libc function, which makes the timings more reliable. The calculated timings directly rely on the instructions generated by the compiler, since a significant amount of time is spent processing (compared to the delays, especially at higher speeds). This means that if the code is changed, or a different compiler is used, the calculations might need changing (though a few cycles more or less shouldn't cause immediate breakage). The timings in the code have been calculated from the assembly generated by gcc 4.8.2 and gcc 4.3.2. The RX baudrates supported by SoftwareSerial are still not unlimited. At 16Mhz, using gcc 4.8.2, everything up to 115200 works. At 8Mhz, it works up to 57600. Using gcc 4.3.2, it also works up to 57600 at 16Mhz and up to 38400 at 8Mhz. Note that at these highest speeds, communication works, but is still quite sensitive to other interrupts (like the millis() interrupts) when bytes are sent back-to-back, so there still are corrupted bytes in RX. TX works up to 115200 for all combinations of compiler and clock rates. This fixes #2019
2015-01-26Disable the RX PCINT inside SoftwareSerial::recvMatthijs Kooijman
Before, the interrupt would remain enabled during reception, which would re-set the PCINT flag because of the level changes inside the received byte. Because interrupts are globally disabled, this would not immediately trigger an interrupt, but the flag would be remembered to trigger another PCINT interrupt immediately after the first one is processed. Typically this was not a problem, because the second interrupt would see the stop bit, or an idle line, and decide that the interrupt triggered for someone else. However, at high baud rates, this could cause the next interrupt for the real start bit to be delayed so much that the byte got corrupted. By clearing the interrupt mask bit for just the RX pin (as opposed to the PCINT mask bit for the entire port), any PCINT events on other bits can still set the PCINT flag and be processed as normal. In this case, it's likely that there will be corruption, but that's inevitable when (other) interrupts happen during SoftwareSerial reception.