Hi Sir
Is it necessary to use FreeRTOS for create two tasks ? Does Nordic has any library or API for task creating ?
Hi Sir
Is it necessary to use FreeRTOS for create two tasks ? Does Nordic has any library or API for task creating ?
Is it necessary to use FreeRTOS for create two tasks ?
Not sure what you mean by that?
Many people manage to make projects on these kinds of chips without any RTOS at all!
So, in that sense, FreeRTOS - or any other RTOS - is not necessary.
Perhaps you could clarify your question - what are you actually trying to achieve?
http://www.catb.org/esr/faqs/smart-questions.html#goal
EDIT:
Does Nordic has any library or API for task creating
I mean that I want to create a thread to run something. Should I porting FreeRTOS to my code for this target ?
----------------------------------
main thread --> run cli
other thread --> run a infinite loop for spi device data transmission.
You're still jumping the gun!
"create a thread" is a step - not a goal.
Should I porting FreeRTOS to my code for this target
Before talking about any particular RTOS (such as FreeRTOS), you should consider whether you need any RTOS at all.
Thanks your help.
Hi
Have you taken a look at the app_timer module?
With this one you can provide a pointer to a function which will be called either once after a certain delay, or repeatedly following a certain interval.
It doesn't have as many features as a fully fledged RTOS, but for many applications it will be sufficient.
We don't have any dedicated examples for the app_timer module, but many of the other examples use it. For instance the ble_app_hrs example uses the app_timer to schedule things like battery state updates and simulated heart rate sensor updates.
Best regards
Torbjørn