X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_stepper.h;h=b97bacba71988f22dd03abb6985c078a156dee8d;hb=b30ca67e54f665181d85a49bff3af2862e86601e;hp=12146ca0c60009d1a7fb9a8ed25b2d96193bc85b;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/hw/hw_stepper.h b/bertos/hw/hw_stepper.h index 12146ca0..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. @@ -142,7 +141,7 @@ do { \ /* * Set control status macro */ -#warning This macro is not implemented (see below) +#warning TODO: This macro is not implemented (see below) #define STEPPER_SET_CONTROL_BIT_MACRO(index, flag) do { \ /* if (flag) */ \ @@ -154,7 +153,7 @@ do { \ /* * Set current power macro */ -#warning This macro is not implemented (see below) +#warning TODO: This macro is not implemented (see below) #define STEPPER_SET_POWER_CURRENT_MACRO(index, flag) do { \ /* if (flag) */ \ @@ -305,3 +304,5 @@ do { \ } while (0) #endif /* HW_STEPPER_H */ + +