guanjiao
2018-05-12 7bd852c98c52c306e3628acedc33149ebee3cff6
源码/核心板/Src/platform/deca_mutex.c
@@ -52,7 +52,8 @@
{
   decaIrqStatus_t s = port_GetEXT_IRQStatus();
   if(s) {
    if(s)
    {
      port_DisableEXT_IRQ(); //disable the external interrupt line
   }
   return s ;   // return state before disable, value is used to re-enable in decamutexoff call
@@ -75,7 +76,8 @@
 */
void decamutexoff(decaIrqStatus_t s)        // put a function here that re-enables the interrupt at the end of the critical section
{
   if(s) { //need to check the port state as we can't use level sensitive interrupt on the STM ARM
    if(s)   //need to check the port state as we can't use level sensitive interrupt on the STM ARM
    {
      port_EnableEXT_IRQ();
   }
}