bugfix compile error

This commit is contained in:
Harald Pichler 2017-11-09 10:59:07 +01:00
parent b929b419af
commit 6695835808
5 changed files with 10 additions and 15 deletions

View file

@ -17,15 +17,12 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if defined(ARDUINO_ARCH_AVR)
#include <avr/interrupt.h>
extern "C" {
#include "Arduino.h"
}
#include "Arduino.h"
#include "Servo.h"
#if defined(ARDUINO_ARCH_AVR)
#define usToTicks(_us) (( clockCyclesPerMicrosecond()* _us) / 8) // converts microseconds to tick (assumes prescale of 8) // 12 Aug 2009
#define ticksToUs(_ticks) (( (unsigned)_ticks * 8)/ clockCyclesPerMicrosecond() ) // converts from ticks back to microseconds