LPC2378 ctl_timeout_wait problem
I use the following code for my test CTL task:
void new_task_code(void *p){
static int c = 0;
while (1) {
c++;
ctl_timeout_wait(ctl_get_current_time()+ctl_get_ticks_per_second());
c--;
}}
But ctl_timeout_wait never finish execution. I suppose it is because ctl_timeout_wait use the same timer0 as CTL scheduler.
How should i fix this?
main_ctl.c
Please sign in to leave a comment.
Comments
2 comments