stepper_avr.c
Go to the documentation of this file.00001 00041 #include "stepper_avr.h" 00042 00043 #include "cfg/cfg_stepper.h" 00044 #include <cfg/macros.h> 00045 #include <cfg/debug.h> 00046 00047 #include <cpu/types.h> 00048 #include <cpu/irq.h> 00049 00050 00051 #warning TODO:This is an example, you must implement it! 00052 00054 /* 00055 static struct TimerCounter stepper_timers[CONFIG_TC_STEPPER_MAX_NUM] = 00056 { 00057 { //Timer Counter settings for TIO0 output pin 00058 // fill with stepper timer channel settings 00059 } 00060 00061 // Add here other stepper timer channel settings 00062 }; 00063 */ 00064 00071 void stepper_tc_setup(int index, stepper_isr_t callback, struct Stepper *motor) 00072 { 00073 /* Put here the code to setup the stepper timer drive */ 00074 00075 //Only for test remove when implement this function 00076 (void)index; 00077 (void)callback; 00078 (void)motor; 00079 } 00080 00084 void stepper_tc_init(void) 00085 { 00086 /* Put here the code to init the stepper timer drive */ 00087 } 00088
