chinamaykumar wrote on Tuesday, April 29, 2008:
check my application part in which i made two task …and try to run…
int main( void )
xTaskCreate( MyTask1, ( signed portCHAR * ) "MyTask1",
configMINIMAL_STACK_SIZE, NULL, 2, NULL );
xTaskCreate( MyTask2, ( signed portCHAR * ) "MyTask2", configMINIMAL_STACK_SIZE, NULL, 1, NULL );
/* Now all the tasks have been started - start the scheduler.
/* Will only get here if there was insufficient memory to create the idle
static void MyTask1( void )
printf("Chinmay Task 1\n\r");
//vTaskDelay( 10 );
printf("Chinmay Task 1 end\n\r");
static void MyTask2( void )
printf("Chinmay Task 2\n\r");
void SleepMs(uint32_t ms)
//Actual clock speed 14.745 MHz
//One sec = 14745,000 Cycles
//One msec = 14745 Cycles
ms *= 14745;
for(i=0; i<ms; i++) nop();
Here printf is used through uart0 in polling mode and my tick int occure after every 3 ms.
I want to execute my task 2 when task 1 is in sleep mode.
So sseing above can you suggest me anything.
Many thanks in advance