acemax wrote on Wednesday, January 20, 2010:
Hello,
I am trying to create a task to blink a LED. As follow:
// In main.c
xTaskCreate( LedRedTask, ( signed char * )“LedRedTask”, 500, NULL, 5, NULL );
In another .c file:
void LedRedTask( void * pvParameters )
{
for(;
{
led_red_on();
vTaskDelay(500);
led_off();
vTaskDelay(1000);
}
}
I thoght that LedRedTask should’ve called periodically. But it doesn’t happen. The led blinks once and the task isn’t called anymore.
What I forget to do?
I’ve already included all header files necessary and the functions led_off() and led_red_on() are OK, cuz even if I comment is the same.
Best regards