X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fstepper_avr.c;h=60cfbc8dc5ae99c418c3134043e6ed9b127fe1ed;hb=b46f64914c62fbb0297728280478681659469654;hp=3babc73d7eaddfa32670577ff726b70aa8bd7659;hpb=c22fe24a0da896a52dbc3882390ec18a440ef56a;p=bertos.git diff --git a/bertos/cpu/avr/drv/stepper_avr.c b/bertos/cpu/avr/drv/stepper_avr.c index 3babc73d..60cfbc8d 100644 --- a/bertos/cpu/avr/drv/stepper_avr.c +++ b/bertos/cpu/avr/drv/stepper_avr.c @@ -32,7 +32,6 @@ * * \brief Low-level stepper timer module for AVR (inplementation). * - * \version $Id$ * * \author Daniele Basile * @@ -51,14 +50,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 +70,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; } /**