Commit graph

1152 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
5ba28d186f Used fixed width integer types, so it is not architecture dependent 2017-02-12 17:14:01 +01:00
Kristian Sloth Lauszus
42948831ce Explicit cast millis() and micros() to uint32_t, as it is uint64_t on the Arduino 101 2017-02-12 16:58:14 +01:00
Kristian Sloth Lauszus
6fb48f48e4 Fix millis() and micros() rollover bug
Also replace long with int32_t, so it is not architecture dependent
2017-02-12 15:10:07 +01:00
Kristian Sloth Lauszus
07de430af0 Merge pull request #288 from YuuichiAkagawa/pr_hubdemofix
Fix missing unsigned comparison.
2017-02-12 14:43:07 +01:00
Yuuichi Akagawa
9b4dd2dcfb Fix missing unsigned comparison. 2017-02-12 22:02:00 +09:00
Kristian Sloth Lauszus
831960bcc2 Release version 1.3.0 2017-02-07 17:44:44 +01:00
Kristian Sloth Lauszus
5d06346303 Added intel_arc32 to PlatformIO platforms 2017-02-07 17:44:26 +01:00
Kristian Sloth Lauszus
242ce6c92b Fixed type in waitingForConnection variable and set it to false when pairing 2017-02-07 15:27:00 +01:00
Kristian Sloth Lauszus
343ae2c1d1 Merge pull request #281 from felis/PS4Slim
Fixed bug for PS4 Slim controller via USB
2017-02-07 15:20:03 +01:00
Kristian Sloth Lauszus
276c7a332a millis() is 64-bits on the Arduino/Genuino 101
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/198814525
2017-02-06 14:04:33 +01:00
Kristian Sloth Lauszus
695325c178 CLOCK_SPEED is now correctly defined as an int instead of a double
See: edcc7062ae
2017-02-06 13:06:13 +01:00
Joe Bowbeer
56c6e3d42b Define CLOCK_SPEED as type int 2017-02-06 12:43:36 +01:00
Joe Bowbeer
e2902bd8a1 Add genuino101 to travis, remove call to setClockDivider (obsolete) 2017-02-06 12:43:02 +01:00
Joe Bowbeer
d57d810e93 Remove duplicate code 2017-02-03 22:52:01 -08:00
Joe Bowbeer
4158a501a9 Add Arduino 101 mods from https://github.com/KitPan/USB_Host_Shield_2.0 2017-02-03 22:44:51 -08:00
Kristian Sloth Lauszus
f89593e4ce Re-enable strict-aliasing warnings for Travis build
See #280
2017-01-31 01:18:38 +01:00
Kristian Sloth Lauszus
ddb140f0ae Merge pull request #280 from arantius/type-punned
Address "dereferencing type-punned pointer" warnings.
2017-01-31 01:17:20 +01:00
Kristian Sloth Lauszus
3a2d0c6e1b Only show build status for master branch 2017-01-31 00:32:09 +01:00
Kristian Sloth Lauszus
e7a01565cd Use descriptor length in order to advance the buffer when parsing the descriptors
This caused an issue with the PS4 Slim controller, as the endpoint descriptor was two bytes longer on the PS4 slim controller when reading the audio interface

I suspect this is due to the fact that the audio interface (USB descriptor type 0x24) it is currently not supported by the library

This is similar to what is done in the example as well: cbea36f76f/examples/USB_desc/USB_desc.ino (L241)

Fixes issue #273
2017-01-31 00:07:13 +01:00
Anthony Lieuallen
44fd6822cf Address "dereferencing type-punned pointer" warnings.
With compiler warnings set to "More", and compiling against this library, I see warnings of the form:

    hidboot.h:381:21: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
             num_of_conf = ((USB_DEVICE_DESCRIPTOR*)buf)->bNumConfigurations;
                         ^

This change addresses those warnings, making issues in my own code easier to notice.
2017-01-28 12:41:10 -05:00
Kristian Sloth Lauszus
0f0da7c5b4 Merge pull request #271 from felis/Teensy3.x
Added support for Teensy 3.5 and 3.6
2016-12-07 14:28:12 -06:00
Kristian Sloth Lauszus
c362c04065 The Xbox button on the Xbox One controller was not read properly
XBOX_BUTTONS is stored in PROGMEM
2016-11-26 23:56:45 -06:00
Kristian Sloth Lauszus
6ec044c230 Added support for Teensy 3.5 and 3.6 2016-11-26 23:46:03 -06:00
Kristian Sloth Lauszus
1faec0f6f9 Merge pull request #259 from Roman3349/master
Add information about library to @PlatformIO Library Registry manifest file
2016-10-10 14:33:56 -05:00
Roman3349
ddcf77a6a3
Add information about license and version to @PlatformIO Library Registry manifest file.
Signed-off-by: Roman3349 <ondracek.roman@centrum.cz>
2016-09-27 21:28:59 +02:00
Andrew Kroll
8d0d495b30 Merge pull request #258 from sieren/fix-type-mismatch
[RedBearLab] Fix type mismatch sizeof to uint8_t
2016-09-27 12:24:46 -04:00
sieren
094f64b697 [RBL] Cast sizeof to uint8_t where needed
The RedbearLab compiler has a type mismatch for
STLs min() and sizeof. Thus we need to cast the
occurences of sizeof to uint8_t.
2016-09-27 18:02:08 +02:00
Kristian Sloth Lauszus
7b0396c1a0 Merge pull request #251 from felis/issue234
Keep reading the IR camera as well if an extension disconnects
2016-07-31 16:04:01 +02:00
Kristian Sloth Lauszus
ce7f62e8d9 Keep reading the IR camera as well if an extension disconnects
Fixes #234

Also added some debugging code, so this could be detected faster in the future
2016-07-02 19:42:32 +02:00
Kristian Sloth Lauszus
2295571e2d Merge pull request #232 from YuuichiAkagawa/pr_usbh_midi_031
Update MIDI driver v0.3.1
2016-04-27 22:34:10 +02:00
Yuuichi Akagawa
a69979a7ea Fix type mismatch warning 2016-04-27 00:52:39 +09:00
Yuuichi Akagawa
cf24646fe6 Fix unused variable warning 2016-04-27 00:28:57 +09:00
Kristian Sloth Lauszus
eb3a258aa6 Remove execute permission from source files 2016-04-26 17:00:44 +02:00
Yuuichi Akagawa
f369e7c500 update MIDI driver v0.3.1 2016-04-26 23:44:07 +09:00
Kristian Sloth Lauszus
7efc0c766e Warnings in the MIDI library were fixed upstream: 5b3e4ac097. 2016-04-24 23:49:53 +02:00
Kristian Sloth Lauszus
43b0736cf3 Just skip the bidrectional_converter example for now 2016-04-24 09:58:03 +02:00
Kristian Sloth Lauszus
0c70f742db Don't treat warnings as errors in the bidrectional_converter example 2016-04-24 02:51:10 +02:00
Kristian Sloth Lauszus
c2a0c98d71 Disable some more warnings in the MIDI examples 2016-04-24 02:37:34 +02:00
Kristian Sloth Lauszus
738adc67f6 Fixed some warnings in the MIDI examples 2016-04-24 02:02:33 +02:00
Kristian Sloth Lauszus
412c6665e2 Added some missing examples to travis build 2016-04-24 01:38:08 +02:00
Kristian Sloth Lauszus
421e8dea4b Fixed some documentation in the Wii driver 2016-04-19 18:10:01 +02:00
Kristian Sloth Lauszus
51dde0252e Fixed error=parentheses warning 2016-04-19 17:27:12 +02:00
Kristian Sloth Lauszus
14021813ef Fix some more unused-but-set-variable warnings
And autoformat some of the examples
2016-04-19 17:12:10 +02:00
Kristian Sloth Lauszus
938880b71d Ignore strict-aliasing warning 2016-04-19 17:04:20 +02:00
Kristian Sloth Lauszus
2ab25f0382 Fix unused-but-set-variable warning 2016-04-19 17:03:42 +02:00
Kristian Sloth Lauszus
9d4f9108e6 Fix warnings on Arduino Due 2016-04-19 16:54:31 +02:00
Kristian Sloth Lauszus
38ed04fe77 Turn on warnings when building using Travis and make all warnings errors
This should catch warnings when people are sending PRs. For instance: 178af85a26
2016-04-19 12:03:39 +02:00
Kristian Sloth Lauszus
00658d60eb Fixed typo 2016-04-19 11:48:51 +02:00
Kristian Sloth Lauszus
85a6c43d4e Merge branch 'paring' 2016-04-19 11:42:30 +02:00
Kristian Sloth Lauszus
854fb80e08 Autoformat USBHIDMultimediaKbd example
No code change
2016-04-19 11:34:04 +02:00