/** * \file * * * \brief Low-level stepper timer module for AVR (inplementation). * * * \author Daniele Basile * */ #include "stepper_avr.h" #include "cfg/cfg_stepper.h" #include #include #include #include #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 } // Add here other stepper timer channel settings }; */ /** * Timer couter setup. * * This function apply to select timer couter all needed settings. * Every settings are stored in stepper_timers[]. */ 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; } /** * Timer counter init. */ void stepper_tc_init(void) { /* Put here the code to init the stepper timer drive */ }