From ef1c995c81e3fde7747c041c3cd1d0a92ea8f242 Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jun 2008 17:51:39 +0000 Subject: [PATCH] Silent unused warning. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1456 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/avr/drv/stepper_avr.c | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/bertos/cpu/avr/drv/stepper_avr.c b/bertos/cpu/avr/drv/stepper_avr.c index 3babc73d..113865c5 100644 --- a/bertos/cpu/avr/drv/stepper_avr.c +++ b/bertos/cpu/avr/drv/stepper_avr.c @@ -51,14 +51,16 @@ #warning TODO:This is an example, you must implement it! ///< Static array of timer counter struct for stepper. -static struct TimerCounter stepper_timers[CONFIG_TC_STEPPER_MAX_NUM] = -{ - { //Timer Counter settings for TIO0 output pin - /* fill with stepper timer channel settings */ - } +/* + static struct TimerCounter stepper_timers[CONFIG_TC_STEPPER_MAX_NUM] = + { + { //Timer Counter settings for TIO0 output pin + // fill with stepper timer channel settings + } - /* Add here other stepper timer channel settings */ -}; + // Add here other stepper timer channel settings + }; +*/ /** * Timer couter setup. @@ -69,6 +71,11 @@ static struct TimerCounter stepper_timers[CONFIG_TC_STEPPER_MAX_NUM] = void stepper_tc_setup(int index, stepper_isr_t callback, struct Stepper *motor) { /* Put here the code to setup the stepper timer drive */ + + //Only for test remove when implement this function + (void)index; + (void)callback; + (void)motor; } /** -- 2.25.1