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