1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-27 13:56:24 +00:00

Allow servo.cpp to use safe_delay

This commit is contained in:
Scott Lahteine 2018-03-09 03:07:45 -06:00
parent f24cdf1081
commit beb7e2ed93

View File

@ -58,6 +58,7 @@
#include <Arduino.h>
#include "servo.h"
#include "utility.h"
#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