Hi,
I trying to integrate a thread inside a function to run in parallel with the main program.
I have tried the THEAD_DEFINE function and it works but it is static and has to run at the start of the program run time.
K_THREAD_DEFINE(thread1,STACKSIZE,funcation call,NULL,NULL,NULL,PRIORITY,0,0);
//k_thread_create(&my_thread_data, my_stack_area, K_THREAD_STACK_SIZEOF(STACKSIZE), funcation call, NULL, NULL, NULL, PRIORITY, 0, K_NO_WAIT);