X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_stepper.h;h=b97bacba71988f22dd03abb6985c078a156dee8d;hb=de27e5352ed34f2313f04a5330e65a90fff0ff07;hp=23d1252ffbed45a6d322dbaeacffe390d3e4ca8f;hpb=5d637953ab47f6fa953ea3cb648fb3cd02799a66;p=bertos.git diff --git a/bertos/hw/hw_stepper.h b/bertos/hw/hw_stepper.h index 23d1252f..b97bacba 100644 --- a/bertos/hw/hw_stepper.h +++ b/bertos/hw/hw_stepper.h @@ -32,7 +32,6 @@ * * \brief Stepper hardware-specific definitions * - * \version $Id$ * * \author Daniele Basile */ @@ -41,7 +40,7 @@ #ifndef HW_STEPPER_H #define HW_STEPPER_H -#include "hw/hw_cpu.h" +#include #include @@ -67,7 +66,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.