Commit graph

1437 commits

Author SHA1 Message Date
Kristian Sloth Lauszus
da253b25bc Reset the watchdog timer on the ESP8266 when the sketch is done 2017-06-13 12:57:56 +02:00
Kristian Sloth Lauszus
c2b6dbf943 Use pin 5 for INT on the ESP8266 2017-06-13 12:57:27 +02:00
Kristian Sloth Lauszus
84bab2d748 Do not use SPI.writeBytes on the ESP8266 2017-06-13 12:40:07 +02:00
Kristian Sloth Lauszus
453a4e1f7f Explicit cast the data to an uint8_t pointer
It is then cast back to uint32_t in the SPI library: 40c159fcf5/libraries/SPI/SPI.cpp (L402)
2017-06-13 12:18:40 +02:00
Kristian Sloth Lauszus
a68614a2e8 The data needs to be aligned to 32-bit when sending using SPI.writeBytes and SPI.transferBytes for the ESP8266 2017-06-13 11:55:05 +02:00
Kristian Sloth Lauszus
a057d83d5e Do not use fixed width integer types for the TinyGPS example, as this causes issues on the ESP8266 platform 2017-06-06 23:38:38 +02:00
Kristian Sloth Lauszus
f443d2af25 Merge branch 'master' into ESP8266
* master:
  Fixed warning on avr
  Used fixed width integer types, so it is not architecture dependent
  Explicit cast millis() and micros() to uint32_t, as it is uint64_t on the Arduino 101
  Fix millis() and micros() rollover bug
2017-06-06 17:28:19 +02:00
Kristian Sloth Lauszus
255df0d160 Merge pull request #289 from felis/rollover
Fix millis() and micros() rollover bug
2017-06-06 17:25:48 +02:00
Kristian Sloth Lauszus
18a36f8627 Split variable to prevent warnings on the ESP8266 platform
See: https://travis-ci.org/felis/USB_Host_Shield_2.0/jobs/230952435#L1149
2017-05-11 17:55:13 +02:00
Kristian Sloth Lauszus
14fec8dab8 Merge branch 'master' into ESP8266
* master:
  Update MIDI driver v0.3.2
  Fix missing unsigned comparison.
  Release version 1.3.0
  Added intel_arc32 to PlatformIO platforms
  Fixed type in waitingForConnection variable and set it to false when pairing
  Use descriptor length in order to advance the buffer when parsing the descriptors
2017-05-11 00:12:30 +02:00
Kristian Sloth Lauszus
f901a79304 Merge branch 'Travis' into ESP8266
* Travis:
  Try to set build flags

# Conflicts:
#	.travis.yml
2017-05-10 00:44:39 +02:00
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