DM814x / CCS5 / SYSBIOS
I have two functions that I need to implement.
One is image processing running at 60Hz, triggered off a GPIO pin (lower priority.)
The other is filter updates running at a higher frequency triggered periodically internally (higher priority).
My strategy was going to be a HWI for the GPIO and a TIMER for the filter update.
I don't want to stay too long in the HWI or TIMER so, I am going to create two tasks, using appropriate priorities.
I am unsure whether the task should have the functionality within a loop and pend on semaphores, which the HWI/TIMER will issue, OR
Have the functionality not within a loop and have the HWI/TIMER kick off the tasks again and again.
I am obviously confused, and any help will be appreciated.
Thanks.