| | |
| | | { |
| | | 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 |
| | |
| | | */ |
| | | 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(); |
| | | } |
| | | } |