Statistics: Posted by ESP_Faye — Wed Nov 11, 2015 3:19 pm
Statistics: Posted by ESP_Faye — Wed Nov 04, 2015 2:28 pm
Other ideas might be to find a "priority" of your own task that is lower than the priority of other work ... so that if there is contention in "Do you work vs do other work", the other work will win.
Statistics: Posted by ali.nasr — Tue Nov 03, 2015 5:27 pm
Statistics: Posted by kolban — Mon Nov 02, 2015 10:52 pm
Code:
pwm_1Task(os_event_t *events){
os_delay_us(10000);
pwm_motor1_adjust();
os_delay_us(10000);
system_os_post(pwm_1TaskPrio, 1, 1 );
};
void user_init(void)
{
at_init();
at_port_print("\r\nready\r\n");
at_cmd_array_regist(&at_custom_cmd[0], 1);
system_os_task(pwm_1Task, pwm_1TaskPrio, pwm_1TaskQueue, pwm_1TaskQueueLen);
system_os_post(pwm_1TaskPrio, 1, 1 );
Statistics: Posted by ali.nasr — Sun Nov 01, 2015 11:04 pm