X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Favr%2Fdrv%2Fstepper_avr.c;h=113865c589d54fe4ae58805020116c1f401d7d5b;hb=393cbf1be81da0ba8fd5c7eb57f70b3fa76487bf;hp=87c7389ba072e717fd6d06abc33c32c984f83952;hpb=52fa40dca7b8505cc239ff7b176b25d062b74b49;p=bertos.git diff --git a/bertos/cpu/avr/drv/stepper_avr.c b/bertos/cpu/avr/drv/stepper_avr.c index 87c7389b..113865c5 100644 --- a/bertos/cpu/avr/drv/stepper_avr.c +++ b/bertos/cpu/avr/drv/stepper_avr.c @@ -40,7 +40,7 @@ #include "stepper_avr.h" -#include +#include "cfg/cfg_stepper.h" #include #include @@ -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; } /**