void nvic_set_pending_irq(uint8_t irqn) { NVIC_ISPR(irqn / 32) = (1 << (irqn % 32)); }
/* * Set-Pending * Pends the associated interrupt under software control. */ EXPORT void SetPendingInt( INTVEC intvec ) { *(_UW*)(NVIC_ISPR(intvec)) = (0x01U << (intvec % 32)); }
uint8_t nvic_get_pending_irq(uint8_t irqn) { return NVIC_ISPR(irqn / 32) & (1 << (irqn % 32)) ? 1 : 0; }