X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fdrv%2Fstepper_at91.c;h=df748da9c3b049081fd0ed63295638b6490ab0e7;hb=6fffd0614f75137e8fed424c87835d4e7d478ef7;hp=d6fc286d7866c50b6855d2699a6f90cfe1d0e926;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/cpu/arm/drv/stepper_at91.c b/bertos/cpu/arm/drv/stepper_at91.c index d6fc286d..df748da9 100644 --- a/bertos/cpu/arm/drv/stepper_at91.c +++ b/bertos/cpu/arm/drv/stepper_at91.c @@ -48,7 +48,6 @@ * generator. * * - * \version $Id$ * * \author Daniele Basile */ @@ -74,9 +73,9 @@ /* * Forward declaration for interrupt handler */ -static void stepper_tc0_irq(void); -static void stepper_tc1_irq(void); -static void stepper_tc2_irq(void); +static ISR_PROTO(stepper_tc0_irq); +static ISR_PROTO(stepper_tc1_irq); +static ISR_PROTO(stepper_tc2_irq); ///< Static array of timer counter struct for stepper. static struct TimerCounter stepper_timers[CONFIG_TC_STEPPER_MAX_NUM] = @@ -253,7 +252,7 @@ INLINE void stepper_tc_tio_irq(struct TimerCounter * t) /* * Interrupt handler for timer counter TCKL0 */ -static void ISR_FUNC stepper_tc0_irq(void) +DECLARE_ISR(stepper_tc0_irq) { /* * Warning: when we read the status_reg register, we reset it. @@ -277,7 +276,7 @@ static void ISR_FUNC stepper_tc0_irq(void) /* * Interrupt handler for timer counter TCKL1 */ -static void ISR_FUNC stepper_tc1_irq(void) +DECLARE_ISR(stepper_tc1_irq) { /* * Warning: when we read the status_reg register, we reset it. @@ -302,7 +301,7 @@ static void ISR_FUNC stepper_tc1_irq(void) /* * Interrupt handler for timer counter TCKL2 */ -static void ISR_FUNC stepper_tc2_irq(void) +DECLARE_ISR(stepper_tc2_irq) { /* @@ -362,7 +361,7 @@ void stepper_tc_setup(int index, stepper_isr_t callback, struct Stepper *motor) *motor->timer->comp_c_reg = 0; //Register interrupt vector - cpuflags_t flags; + cpu_flags_t flags; IRQ_SAVE_DISABLE(flags); /*