I am using Visual Studio for my creating software the nRF52840 running Zephyr.
I create a Zephyr thread using K_THREAD_DEFINE. All works fine, but I need to modify the code to start the task manually instead of after a delay, so I had planned to use a call to "k_thread_start".
The documentation for "k_thread_start" suggests that I can use the value of K_FOREVER for the delay parameter of K_THREAD_DEFINE.
So I tried this...
...and got the following compile message...
.
The problem seems to be that K_FOREVER eventually translates into a usage of K_TICKS_FOREVER, which is...
#define K_TICKS_FOREVER ((k_ticks_t) -1)
The value of type k_ticks_t is not compatible with the value for .int_delay which is an int.
Can someone make a suggestion of how I can delay thread start "forever"?
Thank you
-Craig Goldman