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:
parent
f24cdf1081
commit
beb7e2ed93
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user