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.

Some basic questions about real-time strategies and synchronization

Other Parts Discussed in Thread: SYSBIOS

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.