This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: Writing a SPI Driver for external ADC

Part Number: CC3220SF-LAUNCHXL

Hello,

I have to write a SPI driver to acquire data from an external ADC into the CC3220. If I do not use RTOS even then should I create threads to run the functions?

In some nonRTOS examples in the SDK I saw that threads being used. How can I write a simple program that can be as easy as possible like just having a main file that calls the SPI driver to acquire data?

Thanks & Regards

Sudeep

  • Hi Sudeep,

    Which noRTOS example do you see that in?

    You do not need to create threads in those examples. I think the convention is still to call the main function "mainThread", but it is not actually a thread. It is just a function call from the "main()" function that ends in a while (1).

    The call into the "mainThread()" function is not necessary. You could write your code directly in the "main()" function of one of those examples.

    Best Regards,

    Ben M