Tool/software: TI-RTOS
Hi,
I am trying to understand Ti RTOS and going through TI RTOS Workshop. I have few queries which i am trying to figure out.
1) For passing data from Hwi to either Swi or Task, only way is to use any one of the mechanisms as explained in chapter 9 of this workshop (inter thread communication) have to be used. If you do not want to use any of these mechanism, than only way is to use global; which is not recommended....... Pls correct me if i am wrong or let me have your comments for completeness of this understanding.
2) Structure defined for either using queue or mailbox, is global (as in lab 9). If the structure defined is already global, what benefit do we have (for the case of data to be passed is simple as 2 int, for example) using queue/mailbox over using directly same structure to pass information among different threads without using queue/mailbox ?
Please throw some light on this queries.
Thanks in advance.
Pranav.