DSP = C6748. SYSBIOS = 6.34.4.22
We are using a Touch Screen controller IC. It signals the DSP it has data to process via an interrupt pin (falling edge) that is tied to GPIO6[3]. The Touch Screen data has to be read via the I2C bus. Because I2C transactions can take a long time, we have the HWI signal a TASK to do the I2C reads. Currently we use a Semapore_post() to trigger the TASK to run, but I'm wondering if Event_post() would offer any benefits. Events are new to us, as they didn't exist in DSPBIOS.
From the SYSBIOS users guide, an Event is defined as "Events provide a means for communicating between, and synchronizing threads." Sounds exactly like what we are doing. I understand Events allow you to specify mulitple condition that must happen before a thread run, and in our example we only have one Event (falling edge of GPIO6[3]).
The big question is, what are the pros / cons to using an Event in this case vs. a Semaphore?
Thanks, Dean