IRQ Handling

Provides an API to control interrupt processing. More...

Detailed Description

Files

file  irq.h
 IRQ driver interface.
 

Functions

unsigned irq_disable (void)
 This function sets the IRQ disable bit in the status register. More...
 
unsigned irq_enable (void)
 This function clears the IRQ disable bit in the status register. More...
 
void irq_restore (unsigned state)
 This function restores the IRQ disable bit in the status register to the value contained within passed state. More...
 
int irq_is_in (void)
 Check whether called from interrupt service routine. More...
 

Function Documentation

◆ irq_disable()

unsigned irq_disable ( void  )
Returns
Previous value of status register. The return value should not interpreted as a boolean value. The actual value is only significant for irq_restore().
See also
irq_restore

◆ irq_enable()

unsigned irq_enable ( void  )
Returns
Previous value of status register. The return value should not interpreted as a boolean value. The actual value is only significant for irq_restore().
See also
irq_restore

◆ irq_is_in()

int irq_is_in ( void  )
Returns
true, if in interrupt service routine, false if not

◆ irq_restore()

void irq_restore ( unsigned  state)
Parameters
[in]statestate to restore
See also
irq_enable
irq_disable