X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_stepper.h;h=131411241c6e39ebf605b642dcc427096eb1c190;hb=ba2ba183c492049aface3e3d4e1d5f945b43f3d6;hp=23d1252ffbed45a6d322dbaeacffe390d3e4ca8f;hpb=5d637953ab47f6fa953ea3cb648fb3cd02799a66;p=bertos.git diff --git a/bertos/hw/hw_stepper.h b/bertos/hw/hw_stepper.h index 23d1252f..13141124 100644 --- a/bertos/hw/hw_stepper.h +++ b/bertos/hw/hw_stepper.h @@ -41,7 +41,7 @@ #ifndef HW_STEPPER_H #define HW_STEPPER_H -#include "hw/hw_cpu.h" +#include #include @@ -67,7 +67,7 @@ do { \ /** * Stepper timer clock frequency. */ -#define STEPPER_CLOCK ((CLOCK_FREQ) >> STEPPER_PRESCALER_LOG2) +#define STEPPER_CLOCK ((CPU_FREQ) >> STEPPER_PRESCALER_LOG2) /** * us delay to reset a stepper motor.