示例#1
0
 def disableInterrupts(self):
     """Disable Interrupts without without deallocating structures."""
     if self.interrupt is None:
         raise ValueError("The interrupt is not allocated.")
     if self.isSynchronousInterrupt:
         raise ValueError("You can not disable synchronous interrupts")
     hal.disableInterrupts(self.interrupt)
 def disableInterrupts(self):
     """Disable Interrupts without without deallocating structures."""
     if self.interrupt is None:
         raise ValueError("The interrupt is not allocated.")
     if self.isSynchronousInterrupt:
         raise ValueError("You can not disable synchronous interrupts")
     hal.disableInterrupts(self.interrupt)