Commit Graph

16 Commits

Author SHA1 Message Date
Martino Facchin e5685758e3 fix pulseInLong considering overflow
fixes #3830
2015-09-21 11:59:20 +02:00
Martino Facchin dc04933aa9 pulseInLong: fix incorrect timeout handling 2015-09-21 10:24:48 +02:00
Federico Fissore 37c29845f6 Removed a handful of SVN expansion keywords. See #277 2015-07-03 10:38:07 +02:00
Cristian Maglie 64dd45c3ce Fixed unused variables warnings and indentation 2015-05-29 20:02:50 +02:00
Martino Facchin ef4eb0cf6a pulseIn: be consistent with standard API
return 0 if timeout has been reached
2015-05-29 15:01:38 +02:00
Martino Facchin 8dfa9dfb9e 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 6940c1d644 pulseIn: modify function to use ASM implementation 2015-05-29 15:01:37 +02:00
Martino Facchin 1a63b36583 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
Cristian Maglie 61c82a1937 Temporary fix for pulseIn() regression.
Fixes #2538
2015-01-18 17:34:40 +01:00
Federico Fissore c453e0a32e fixed permissions on a lot of text files. see #1116 2012-12-10 10:42:49 +01:00
David A. Mellis eb9c51d43c pulseIn() now times out while measuring the pulse, not just while waiting for it to start. 2010-11-22 23:33:59 -05:00
David A. Mellis 35f5f6e99f Improving third-party hardware support:
- moving back to multple cores per platform
- using target instead of platform
- moving per-board and per-programmer preferences out of Preferences.java and into a new Target class
- adding a new "target" preference
- support for platform:value values in board preferences for bootloader path and core
- XXX: need to support platform:value syntax for board upload.using preferences.
2009-11-21 23:23:43 +00:00
David A. Mellis 584dece7b0 Moving things around. 2009-11-07 17:05:21 +00:00
David A. Mellis 68e9d04f91 Waiting for pulse to start (rising or falling edge) to start timing. 2008-11-08 21:31:12 +00:00
David A. Mellis c7cac2f165 Added timeout (in microseconds) parameter to pulseIn(). Defaults to 1000000 (1 second). 2008-03-08 21:30:00 +00:00
David A. Mellis 5f3976696d Moving hardware/targets to hardware/cores. 2007-10-06 14:47:50 +00:00