What is the interface protected by critical code in tirtos7?
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.
I see. is HAL_DISABLE_INTERRUPTS and HAL_ENABLE_INTERRUPTS。Thank you
Hi,
if your goal is to disable and enable all global interrupts, I recommend to use the API IntMasterDisable() and IntMasterEnable(), see below link.