|
@@ -255,27 +255,6 @@ void prepare_arc_move(bool isclockwise);
|
|
|
void clamp_to_software_endstops(float target[3]);
|
|
|
void refresh_cmd_timeout(void);
|
|
|
|
|
|
-// Timer counter, incremented by the 1ms Arduino timer.
|
|
|
-// The standard Arduino timer() function returns this value atomically
|
|
|
-// by disabling / enabling interrupts. This is costly, if the interrupts are known
|
|
|
-// to be disabled.
|
|
|
-#ifdef SYSTEM_TIMER_2
|
|
|
-extern volatile unsigned long timer2_millis;
|
|
|
-#else //SYSTEM_TIMER_2
|
|
|
-extern volatile unsigned long timer0_millis;
|
|
|
-#endif //SYSTEM_TIMER_2
|
|
|
-
|
|
|
-// An unsynchronized equivalent to a standard Arduino _millis() function.
|
|
|
-// To be used inside an interrupt routine.
|
|
|
-
|
|
|
-FORCE_INLINE unsigned long millis_nc() {
|
|
|
-#ifdef SYSTEM_TIMER_2
|
|
|
- return timer2_millis;
|
|
|
-#else //SYSTEM_TIMER_2
|
|
|
- return timer0_millis;
|
|
|
-#endif //SYSTEM_TIMER_2
|
|
|
-}
|
|
|
-
|
|
|
#ifdef FAST_PWM_FAN
|
|
|
void setPwmFrequency(uint8_t pin, int val);
|
|
|
#endif
|