From 7c38f9d8ca62ec43080870c96760fd75567cec56 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 22 May 2008 08:39:58 +0000 Subject: [PATCH] Remove stobe macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1324 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/drv/stepper_at91.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bertos/cpu/arm/drv/stepper_at91.c b/bertos/cpu/arm/drv/stepper_at91.c index eef7793e..4f41f10d 100644 --- a/bertos/cpu/arm/drv/stepper_at91.c +++ b/bertos/cpu/arm/drv/stepper_at91.c @@ -263,16 +263,12 @@ static void ISR_FUNC stepper_tc0_irq(void) */ uint32_t status_reg = TC0_SR & TC0_IMR; - if ((status_reg & BV(TC_CPBS)) && (status_reg & BV(TC_CPAS))) - STEPPER_STROBE_ON; - if (status_reg & BV(TC_CPAS)) stepper_tc_tio_irq(&stepper_timers[TC_TIOA0]); if (status_reg & BV(TC_CPBS)) stepper_tc_tio_irq(&stepper_timers[TC_TIOB0]); - STEPPER_STROBE_OFF; /* Inform hw that we have served the IRQ */ AIC_EOICR = 0; @@ -283,7 +279,6 @@ static void ISR_FUNC stepper_tc0_irq(void) */ static void ISR_FUNC stepper_tc1_irq(void) { - STEPPER_STROBE_ON_1; /* * Warning: when we read the status_reg register, we reset it. * That mean if is occur an interrupt event we can read only @@ -301,7 +296,6 @@ static void ISR_FUNC stepper_tc1_irq(void) /* Inform hw that we have served the IRQ */ AIC_EOICR = 0; - STEPPER_STROBE_OFF_1; } @@ -319,14 +313,12 @@ static void ISR_FUNC stepper_tc2_irq(void) */ uint32_t status_reg = TC2_SR & TC2_IMR; - STEPPER_STROBE_ON_2; if (status_reg & BV(TC_CPAS)) stepper_tc_tio_irq(&stepper_timers[TC_TIOA2]); if (status_reg & BV(TC_CPBS)) stepper_tc_tio_irq(&stepper_timers[TC_TIOB2]); - STEPPER_STROBE_OFF_2; /* Inform hw that we have served the IRQ */ AIC_EOICR = 0; -- 2.25.1