Commit graph

1376 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
9de76a07dc 14cf737d7d is no longer needed 2017-03-22 14:10:39 +01:00
Kristian Sloth Lauszus
9162d13f77 Merge branch 'master' into rollover
* master:
  Update MIDI driver v0.3.2

# Conflicts:
#	examples/USBH_MIDI/USBH_MIDI_dump/USBH_MIDI_dump.ino
#	examples/USBH_MIDI/USB_MIDI_converter/USB_MIDI_converter.ino
#	examples/USBH_MIDI/USB_MIDI_converter_multi/USB_MIDI_converter_multi.ino
#	examples/USBH_MIDI/bidirectional_converter/bidirectional_converter.ino
#	usbh_midi.cpp
#	usbh_midi.h
2017-03-02 11:47:04 +01:00
Kristian Sloth Lauszus
781d368ffb Merge pull request #291 from YuuichiAkagawa/pr_usbh_midi_032
Update MIDI driver v0.3.2
2017-03-02 11:41:13 +01:00
Yuuichi Akagawa
43f423e15d Update MIDI driver v0.3.2 2017-02-26 23:01:08 +09:00
Kristian Sloth Lauszus
3952d900ff Reset the watchdog timer on the ESP8266
See: https://github.com/felis/USB_Host_Shield_2.0/pull/263#issuecomment-279222338
2017-02-14 00:27:35 +01:00
Kristian Sloth Lauszus
2f46665ee4 Fixed warning on avr
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/200893091
2017-02-12 20:43:26 +01:00
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
4cb265e9a8 Merge branch 'master' into ESP8266
* master:
  millis() is 64-bits on the Arduino/Genuino 101
  CLOCK_SPEED is now correctly defined as an int instead of a double
  Define CLOCK_SPEED as type int
  Add genuino101 to travis, remove call to setClockDivider (obsolete)
  Remove duplicate code
  Add Arduino 101 mods from https://github.com/KitPan/USB_Host_Shield_2.0

# Conflicts:
#	.travis.yml
2017-02-06 14:45:33 +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
7b0487da80 Try to set build flags 2017-02-01 16:53:31 +01:00
Kristian Sloth Lauszus
14cf737d7d Only ignore unused functions when building for the ESP8266
This should be removed when the ESP8266 core is updated in PlatformIO: https://github.com/esp8266/Arduino/pull/2881
2017-02-01 12:26:27 +01:00
Kristian Sloth Lauszus
8f44b62470 Only define WIICAMERA for WiiIRCamera example 2017-02-01 11:20:09 +01:00
Kristian Sloth Lauszus
d9b32ad745 Merge branch 'master' into ESP8266
* master:
  Re-enable strict-aliasing warnings for Travis build
  Only show build status for master branch
  Address "dereferencing type-punned pointer" warnings.

# Conflicts:
#	.travis.yml
2017-01-31 22:14:25 +01: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
46a036cbd4 Merge branch 'master' into ESP8266
* master:
  The Xbox button on the Xbox One controller was not read properly
  Added support for Teensy 3.5 and 3.6

# Conflicts:
#	.travis.yml
2016-12-07 14:30:20 -06: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
huming2207
03ba29ca24 Remove unusable pins 2016-11-02 23:15:08 +11:00
huming2207
dc2a224d2e Change INT pin to GPIO0 temporarily as it cannot attach interrupt. 2016-11-02 23:13:09 +11:00
Kristian Sloth Lauszus
6af321a7ac Use transferBytes when we want to receive data 2016-10-26 00:58:51 -05:00
Kristian Sloth Lauszus
231fb542a8 SPI pins are defined in newer version of Arduino
See: https://github.com/arduino/Arduino/pull/4814
2016-10-25 03:23:40 -05:00
Kristian Sloth Lauszus
238c26908f Use pin 15 and 16 for SS and INT respectivly
The Wifio is not supported for now
2016-10-25 01:38:24 -05:00
Kristian Sloth Lauszus
31570861fe Updated README 2016-10-25 00:07:52 -05:00
Kristian Sloth Lauszus
aa3731c230 Workaround the following issue: https://github.com/esp8266/Arduino/issues/2078
Also see: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/170350078
2016-10-25 00:07:52 -05:00
Kristian Sloth Lauszus
58015d611d Use SPI.writeBytes instead of SPI.transfer on the ESP8266 2016-10-25 00:07:52 -05:00
Kristian Sloth Lauszus
736eebcc36 Do not generate warnings for unused functions 2016-10-25 00:07:52 -05:00
Kristian Sloth Lauszus
6fbe00703a Workaround issue with SPI_HAS_TRANSACTION is just defined and not set to a value in the ESP8266 Arduino core 2016-10-25 00:07:51 -05:00
Kristian Sloth Lauszus
f087a57895 Added support for ESP8266
Fixes #262
2016-10-25 00:07:51 -05: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