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 )
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.