hat is the difference beetween these 2 kinds of gates. In the documentation, I understand that in the 2 cases, interrupts are disables when entering the gate to lock resource. I would like to have the most general critical section to share resource beetween tasks or beetween task and hardware interrupts. But, if I use GateAll from a task, would all the interrupts be blocked until the resource is released by the interrupt ?
I use Sysbios 6.32 on TMS320C6748 DSP
Hi A BONNET,
The difference can be seen in when comparing each module's "_enter" and "_exit" functions.
GateHwi_enter() will globally disable interrupts by calling Hwi_disable(). GateHwi_exit() calls Hwi_restore()
GateAll_enter() will call both Hwi_disable() and Swi_disable(). GateAll_exit() calls Swi_restore() and Hwi_restore()
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.