| | |
| | | #include "bsp_pid.h" |
| | | #include "os_task.h" |
| | | #include "RttTask.h" |
| | | #include "SEGGER_RTT_Conf.h" |
| | | #include "SEGGER_RTT.h" |
| | | |
| | | static void Comm_Task(void *p) |
| | | { |
| | | // static uint16_t test_cnt = 0; |
| | | // ++test_cnt; |
| | | // if (test_cnt == 15) |
| | | // { |
| | | // timer_channel_output_mode_config(TIMER0, MOTOR_OUT_CH_W, TIMER_OC_MODE_PWM0); |
| | | // timer_channel_output_state_config(TIMER0, MOTOR_OUT_CH_W, TIMER_CCX_ENABLE); |
| | | // } |
| | | // else if (test_cnt > 30) |
| | | // { |
| | | // test_cnt = 0; |
| | | // timer_channel_output_state_config(TIMER0, MOTOR_OUT_CH_W, TIMER_CCX_DISABLE); |
| | | // } |
| | | } |
| | | |
| | | int main() |