The led flash demo should control 3 leds, with 3 different tasks, but only one led is working. Looking at the code I don’t understand how it should work.
/* Create the three tasks. */
for( xLEDTask = 0; xLEDTask < ledNUMBER_OF_LEDS; ++xLEDTask )
/* Spawn the task. */
xTaskCreate( vLEDFlashTask, ( const signed portCHAR * const ) “LEDx”, ledSTACK_SIZE, NULL, uxPriority, ( xTaskHandle * ) NULL );
But in order to create 3 different leds, the vLEDFlash must execute (in order to increment uxFlashTaskNumber),
and I don’t think that xTaskCreat is executing the the function vLEDFlashTask(), it only take its address.
Am I wrong?