Hi All,
I just started with FreeRTOS.
please may someone tell me why i receive "error(128):Function argument incomplatible with its declaretion " when compiling this:
int main(void)
{
/* Create the sample tasks. */
xTaskCreate( Task1, "Task1", configMINIMAL_STACK_SIZE, (void *)10, tskIDLE_PRIORITY + 1, NULL);
vTaskStartScheduler();
return 0;
}
void Task1( void *pvParameters )
{
int x = (int)pvParameters;
Not sure if we are talking at cross purposes here. I was referring to a prototype for Task1 function, not the inclusion of task.h. It seems this is not the problem anyway if the error is on the pcName parameter.
You could try casting it to const * const.
Which compiler for which chip are you using? Some compilers default char * to signed char *, and some to unsigned char * which is why FreeRTOS has to cast everything explicitly to remove the warnings.