lpcware

How to pass arguments to thread ?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Mondo90 on Fri Sep 26 06:55:03 MST 2014
Hello, I need information how to pass arguments to thread function. Like below, how to pass args to vTaskLEDBlinker function ?

xTaskCreate( vTaskLEDBlinker, (const signed portCHAR * const) "while", configMINIMAL_STACK_SIZE,
NULL, 3, NULL);


can I writte it as :

xTaskCreate( vTaskLEDBlinker(arg1,arg2), (const signed portCHAR * const) "while", configMINIMAL_STACK_SIZE,
NULL, 3, NULL);



Thanks for help.

Outcomes