Lines Matching refs:interruptNumber

165 void Interrupt_registerInterrupt(uint32_t interruptNumber,  in Interrupt_registerInterrupt()  argument
173 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_registerInterrupt()
205 g_pfnRAMVectors[interruptNumber] = intHandler; in Interrupt_registerInterrupt()
208 void Interrupt_unregisterInterrupt(uint32_t interruptNumber) in Interrupt_unregisterInterrupt() argument
213 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_unregisterInterrupt()
218 g_pfnRAMVectors[interruptNumber] = IntDefaultHandler; in Interrupt_unregisterInterrupt()
263 void Interrupt_setPriority(uint32_t interruptNumber, uint8_t priority) in Interrupt_setPriority() argument
270 ASSERT((interruptNumber >= 4) && (interruptNumber < (NUM_INTERRUPTS+1))); in Interrupt_setPriority()
275 ulTemp = HWREG32(g_pulRegs[interruptNumber >> 2]); in Interrupt_setPriority()
276 ulTemp &= ~(0xFF << (8 * (interruptNumber & 3))); in Interrupt_setPriority()
277 ulTemp |= priority << (8 * (interruptNumber & 3)); in Interrupt_setPriority()
278 HWREG32 (g_pulRegs[interruptNumber >> 2]) = ulTemp; in Interrupt_setPriority()
281 uint8_t Interrupt_getPriority(uint32_t interruptNumber) in Interrupt_getPriority() argument
286 ASSERT((interruptNumber >= 4) && (interruptNumber < (NUM_INTERRUPTS+1))); in Interrupt_getPriority()
291 return ((HWREG32(g_pulRegs[interruptNumber >> 2]) in Interrupt_getPriority()
292 >> (8 * (interruptNumber & 3))) & 0xFF); in Interrupt_getPriority()
295 void Interrupt_enableInterrupt(uint32_t interruptNumber) in Interrupt_enableInterrupt() argument
300 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_enableInterrupt()
305 if (interruptNumber == FAULT_MPU) in Interrupt_enableInterrupt()
311 } else if (interruptNumber == FAULT_BUS) in Interrupt_enableInterrupt()
317 } else if (interruptNumber == FAULT_USAGE) in Interrupt_enableInterrupt()
323 } else if (interruptNumber == FAULT_SYSTICK) in Interrupt_enableInterrupt()
329 } else if (interruptNumber >= 16) in Interrupt_enableInterrupt()
334 HWREG32 (g_pulEnRegs[(interruptNumber - 16) / 32]) = 1 in Interrupt_enableInterrupt()
335 << ((interruptNumber - 16) & 31); in Interrupt_enableInterrupt()
339 void Interrupt_disableInterrupt(uint32_t interruptNumber) in Interrupt_disableInterrupt() argument
344 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_disableInterrupt()
349 if (interruptNumber == FAULT_MPU) in Interrupt_disableInterrupt()
355 } else if (interruptNumber == FAULT_BUS) in Interrupt_disableInterrupt()
361 } else if (interruptNumber == FAULT_USAGE) in Interrupt_disableInterrupt()
367 } else if (interruptNumber == FAULT_SYSTICK) in Interrupt_disableInterrupt()
373 } else if (interruptNumber >= 16) in Interrupt_disableInterrupt()
378 HWREG32 (g_pulDisRegs[(interruptNumber - 16) / 32]) = 1 in Interrupt_disableInterrupt()
379 << ((interruptNumber - 16) & 31); in Interrupt_disableInterrupt()
383 bool Interrupt_isEnabled(uint32_t interruptNumber) in Interrupt_isEnabled() argument
390 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_isEnabled()
400 if (interruptNumber == FAULT_MPU) in Interrupt_isEnabled()
406 } else if (interruptNumber == FAULT_BUS) in Interrupt_isEnabled()
412 } else if (interruptNumber == FAULT_USAGE) in Interrupt_isEnabled()
418 } else if (interruptNumber == FAULT_SYSTICK) in Interrupt_isEnabled()
424 } else if (interruptNumber >= 16) in Interrupt_isEnabled()
429 ulRet = HWREG32(g_pulEnRegs[(interruptNumber - 16) / 32]) in Interrupt_isEnabled()
430 & (1 << ((interruptNumber - 16) & 31)); in Interrupt_isEnabled()
435 void Interrupt_pendInterrupt(uint32_t interruptNumber) in Interrupt_pendInterrupt() argument
440 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_pendInterrupt()
445 if (interruptNumber == FAULT_NMI) in Interrupt_pendInterrupt()
451 } else if (interruptNumber == FAULT_PENDSV) in Interrupt_pendInterrupt()
457 } else if (interruptNumber == FAULT_SYSTICK) in Interrupt_pendInterrupt()
463 } else if (interruptNumber >= 16) in Interrupt_pendInterrupt()
468 HWREG32 (g_pulPendRegs[(interruptNumber - 16) / 32]) = 1 in Interrupt_pendInterrupt()
469 << ((interruptNumber - 16) & 31); in Interrupt_pendInterrupt()
473 void Interrupt_unpendInterrupt(uint32_t interruptNumber) in Interrupt_unpendInterrupt() argument
478 ASSERT(interruptNumber < (NUM_INTERRUPTS+1)); in Interrupt_unpendInterrupt()
483 if (interruptNumber == FAULT_PENDSV) in Interrupt_unpendInterrupt()
489 } else if (interruptNumber == FAULT_SYSTICK) in Interrupt_unpendInterrupt()
495 } else if (interruptNumber >= 16) in Interrupt_unpendInterrupt()
500 HWREG32 (g_pulUnpendRegs[(interruptNumber - 16) / 32]) = 1 in Interrupt_unpendInterrupt()
501 << ((interruptNumber - 16) & 31); in Interrupt_unpendInterrupt()