Martino Facchin
97a3771772
rename Setup typedef struct to USBSetup
...
was really too common
2015-07-16 13:13:52 +02:00
Martino Facchin
dee43a19d7
fix HID headers
2015-07-16 13:13:51 +02:00
Martino Facchin
9074b1ed18
fix HID descriptors bigger than 127 bytes
2015-07-16 13:13:51 +02:00
Martino Facchin
175240a906
Add support for waking up a host via USB HID
...
this is a rework of commit fbcf94801b8bba7f1c8c79cc7ae402b6b9dbb2d3
2015-07-16 13:13:51 +02:00
Martino Facchin
e211f1ea76
remove setupUSB weak hook and replace with global constructors
...
thanks @matthijskooijman
2015-07-16 13:13:49 +02:00
Martino Facchin
89928b4e15
rework PUSBCallbacks initialization
2015-07-16 13:13:39 +02:00
Martino Facchin
ada0e4c2f3
remove 3 endpoints to match at32u4 limit
2015-07-16 13:12:15 +02:00
Martino Facchin
f37547e8fd
add numInterfaces field to PUSBCallbacks
2015-07-16 13:12:15 +02:00
Martino Facchin
7b5c25f534
implement PUSB modules as linked list
2015-07-16 13:12:14 +02:00
Martino Facchin
f67318a8b1
remove useless variables
2015-07-16 13:12:14 +02:00
Martino Facchin
91ccab4f09
make CDC function non removable
2015-07-16 13:12:14 +02:00
Martino Facchin
b2a6b61a2f
add weak setupUSB() hook
...
override this function to insert additional USB endpoints
2015-07-16 13:12:14 +02:00
Martino Facchin
ec43b6c829
remove useless variable
2015-07-16 13:12:14 +02:00
Martino Facchin
1aec25b855
add PluggableUSB module
2015-07-16 13:12:14 +02:00
Martino Facchin
1f534eac35
move _initEndpoints from PROGMEM to RAM
2015-07-16 13:12:14 +02:00
Martino Facchin
2c5dd20298
Use generic composite device descriptor
2015-07-16 13:12:13 +02:00
Martino Facchin
5ee69a70ee
Move EP defines to header
2015-07-16 13:12:13 +02:00
Martino Facchin
09460dd8c9
Remove HID core library
2015-07-16 13:12:13 +02:00
Matthijs Kooijman
ebeb7843d2
Check for __cplusplus >= 201103L as well as __GXX_EXPERIMENTAL_CXX0X__
...
Gcc 4.8 defines __cplusplus as 201103L, so we can check for that now. It
still also defines __GXX_EXPERIMENTAL_CXX0X__, but this could help on
other compilers, or if gcc ever decides to stop defining the
experimental macro.
2015-07-16 13:06:10 +02:00
Federico Fissore
431f319aca
Removed a handful of SVN expansion keywords. See #277
2015-07-03 10:38:07 +02:00
Matthijs Kooijman
07c4d958c0
Warn about increasing HardwareSerial buffers to > 256
...
Properly supporting bigger buffers need better atomicity code, which
isn't implemented yet. Until it is, best to add a warning. See #2405 .
2015-06-18 16:36:07 +02:00
Martino Facchin
ed1b8eb486
Add a Stream::find(char) method
2015-06-01 14:06:32 +00:00
Cristian Maglie
074d910857
Fixed unused argument warning
2015-05-30 15:19:44 +02:00
Cristian Maglie
2cbdc121e9
Fixed unused variables warnings and indentation
2015-05-29 20:02:50 +02:00
chromhelm
cd9d30a8fe
Saving some bytes in HardwareSerial::write
2015-05-29 18:12:24 +02:00
Martino Facchin
7a22827359
pulseIn: be consistent with standard API
...
return 0 if timeout has been reached
2015-05-29 15:01:38 +02:00
Martino Facchin
689c654e8d
pulseInASM: rework comment style
2015-05-29 15:01:38 +02:00
Martino Facchin
d4a80be045
pulseIn: add alternative implementation based on micros()
...
pulseInLong is suitable for long pulses in interrupt context
2015-05-29 15:01:38 +02:00
Martino Facchin
93f74f84ce
pulseIn: modify function to use ASM implementation
2015-05-29 15:01:37 +02:00
Martino Facchin
b37b0d1b6d
pulseIn: add ASM implementation
...
this assembly code was generated by avr-gcc 4.8.3
2015-05-29 15:01:37 +02:00
Martino Facchin
0c9f0d50a5
Revert "Temporary fix for pulseIn() regression."
...
This reverts commit 8ddc5198f6ef8b2816a61b7b0fcce99f927d11a0.
To be substituted by ASM generated code
2015-05-29 15:01:37 +02:00
Martino Facchin
d92bf5bdaa
Merge pull request #3202 from Chris--A/randomSeed
...
Modified randomSeed, now uses unsigned long.
2015-05-28 10:54:26 +02:00
Martino Facchin
9d13023075
Merge pull request #3211 from Chris--A/println-optimize
...
Println optimize
2015-05-28 10:24:12 +02:00
Cristian Maglie
b4c5fa7109
Merge pull request #3244 from Lauszus/INT2
...
Check if INT2 is actually defined before issuing warning in detachInterrupt
2015-05-28 09:51:25 +02:00
Martino Facchin
f816e76d47
Merge pull request #3207 from chromhelm/master
...
Fixed bug with HWSerial flushing
2015-05-28 09:44:46 +02:00
Kristian Sloth Lauszus
272d5cc93d
Check if INT2 is actually defined before issuing warning in detachInterrupt
...
This was caused after: https://github.com/arduino/Arduino/pull/3221
2015-05-28 03:42:32 +02:00
Victor Aprea
e9045d8b8a
Add missing case to detachinterrupt
2015-05-24 20:35:23 -04:00
Cristian Maglie
e273178425
Indent fix.
2015-05-22 17:23:46 +02:00
Cano
c4080efdb5
zero delay fix, ADC prescaler fix
2015-05-22 17:23:46 +02:00
Cano
219914ef22
delayMicroseconds(): added support for 1Mhz, 12Mhz and 24Mhz
...
1Mhz is a default clock speed on Atmega328, many users run it on the
internal 1Mhz clock to save battery power. Up until now
delayMicroseconds() function wasn't taking this frequencies into an
account.
2015-05-22 17:23:45 +02:00
Chris--A
c617562e74
Optimize printLn calls.
2015-05-22 23:00:07 +10:00
chromhelm
ed331a817a
Fixed bug with flushing
2015-05-21 21:42:40 +02:00
Chris--A
0051eadd2a
Modified randomSeed, now uses unsigned long.
2015-05-21 16:52:42 +10:00
Nico
d2595129c5
RX and TX Serial buffer sizes can now be defined independently
...
Fixes #2597
2015-05-12 15:09:48 +02:00
Cristian Maglie
c96c917dd0
Fixed indentation in Stream.cpp, no code change
2015-04-21 18:10:32 +02:00
Cristian Maglie
35fc66c23d
Fixed wrong bracket placement (see #3011 )
2015-04-21 18:07:42 +02:00
Kristian Sloth Lauszus
91489d7ba8
Fixed: warning: comparison between signed and unsigned integer expressions
2015-04-21 00:08:11 +02:00
Kristian Sloth Lauszus
f3e7a3909d
Fixed: warning: suggest explicit braces to avoid ambiguous 'else'
2015-04-21 00:08:02 +02:00
Martino Facchin
b41e4a3d7d
Merge branch 'jipp-master'
2015-04-14 10:13:58 +02:00
Jan
df577bf244
Fix for issue #292
...
Replaced direct register manipulation with calls to bitWrite(). Fixed TIMSK5 usage on Leonardo (as well as some other preprocessor statements).
2015-04-13 20:36:28 +02:00