Hi
Can xTaskCreate and xTaskCreateStatic be used simultaneously?
That is, in the same program can some tasks be created with xTaskCreate whilst others created with xTaskCreateStatic?
If yes do other objects like semaphores behave the same?
thanks
Hi
Can xTaskCreate and xTaskCreateStatic be used simultaneously?
That is, in the same program can some tasks be created with xTaskCreate whilst others created with xTaskCreateStatic?
If yes do other objects like semaphores behave the same?
thanks
Yes, you can have both the dynamic creation and static creation functions available at the same time.
the configuration options
configSUPPORT_STATIC_ALLOCATION
configSUPPORT_DYNAMIC_ALLOCATION
are available together and you can define them how you wish (so long as at least 1 is enabled) in your application configuration header.
These options affect the queues, tasks, semephores and timers by modifying the creation functions appropriately.