X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fhw%2Fhw_stepper.h;h=131411241c6e39ebf605b642dcc427096eb1c190;hb=c27023641680161cd31e7dfe9c7420e7a7abeb83;hp=77038cd899addfad0c65c22dee04642ca24bb78b;hpb=107743ef422de7a4c926a20ff87eee1515eb1987;p=bertos.git diff --git a/bertos/hw/hw_stepper.h b/bertos/hw/hw_stepper.h index 77038cd8..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_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. @@ -142,7 +142,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 +154,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 +305,5 @@ do { \ } while (0) #endif /* HW_STEPPER_H */ + +