From: asterix Date: Tue, 10 Jun 2008 17:30:48 +0000 (+0000) Subject: Silent unused variable warning (only for test). X-Git-Tag: 2.0.0~499 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0df09dd586c65cc554377ba1d5f63822f74cbbd2;p=bertos.git Silent unused variable warning (only for test). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1435 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/stepper_avr.h b/bertos/cpu/avr/drv/stepper_avr.h index 0173e4e9..840734e7 100644 --- a/bertos/cpu/avr/drv/stepper_avr.h +++ b/bertos/cpu/avr/drv/stepper_avr.h @@ -72,6 +72,9 @@ typedef struct TimerCounter INLINE void stepper_tc_irq_enable(struct TimerCounter *timer) { /* put here code to enable timer irq */ + + //Only for test remove when implement this function + (void)timer; } @@ -81,6 +84,9 @@ INLINE void stepper_tc_irq_enable(struct TimerCounter *timer) INLINE void stepper_tc_irq_disable(struct TimerCounter *timer) { /* put here code to disable timer irq */ + + //Only for test remove when implement this function + (void)timer; } /** @@ -89,6 +95,10 @@ INLINE void stepper_tc_irq_disable(struct TimerCounter *timer) INLINE void stepper_tc_setDelay(struct TimerCounter *timer, stepper_time_t delay) { /* put here code to set the delay for next irq */ + + //Only for test remove when implement this function + (void)timer; + (void)delay; } @@ -98,6 +108,9 @@ INLINE void stepper_tc_setDelay(struct TimerCounter *timer, stepper_time_t dela INLINE void stepper_tc_resetTimer(struct TimerCounter *timer) { /* put here code to reset the timer */ + + //Only for test remove when implement this function + (void)timer; } /** @@ -106,6 +119,9 @@ INLINE void stepper_tc_resetTimer(struct TimerCounter *timer) INLINE void FAST_FUNC stepper_tc_doPulse(struct TimerCounter *timer) { /* put here code to generate a pulse */ + + //Only for test remove when implement this function + (void)timer; } /** @@ -114,6 +130,9 @@ INLINE void FAST_FUNC stepper_tc_doPulse(struct TimerCounter *timer) INLINE void FAST_FUNC stepper_tc_skipPulse(struct TimerCounter *timer) { /* put here code to skip a pulse */ + + //Only for test remove when implement this function + (void)timer; } void stepper_tc_setup(int index, stepper_isr_t callback, struct Stepper *motor); diff --git a/bertos/hw/hw_phase.h b/bertos/hw/hw_phase.h index f1cf887e..62228cee 100644 --- a/bertos/hw/hw_phase.h +++ b/bertos/hw/hw_phase.h @@ -33,7 +33,7 @@ * \brief Phase control hardware-specific definitions * * \version $Id$ - * + * * \author Francesco Sacchi */ @@ -51,12 +51,18 @@ INLINE void TRIAC_OFF(TriacDev i) { /* Implement me! */ + + //Only for test remove when implement this function + (void)i; } INLINE void TRIAC_ON(TriacDev i) { /* Implement me! */ + + //Only for test remove when implement this function + (void)i; } diff --git a/bertos/hw/hw_sensor.h b/bertos/hw/hw_sensor.h index c7e53125..113e468f 100644 --- a/bertos/hw/hw_sensor.h +++ b/bertos/hw/hw_sensor.h @@ -48,31 +48,45 @@ INLINE bool hw_home_sensor_read(int sensor) { /* Implement me! */ - + + //Only for test remove when implement this function + (void)sensor; return 0; } INLINE void hw_home_sensor_set_inverted(int sensor, bool inverted) { /* Implement me! */ + + //Only for test remove when implement this function + (void)sensor; + (void)inverted; } INLINE bool hw_level_sensor_read(int sensor) { /* Implement me! */ - + + //Only for test remove when implement this function + (void)sensor; return 0; } INLINE void hw_level_sensor_set_inverted(int sensor, bool inverted) { /* Implement me! */ + + //Only for test remove when implement this function + (void)sensor; + (void)inverted; } INLINE bool bld_hw_sensor_read(int sensor) { /* Implement me! */ - + + //Only for test remove when implement this function + (void)sensor; return 0; }