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