void libarm_set_irq int  enable  ) 
 

Enables or disables IRQ interrupts.

Parameters:
enable   If non-zero IRQ interrupts will be enabled, otherwise they will be disabled.
This function enables or disables IRQ interrupts. It modifies the CPSR register's control field and therefore will only work when the CPU is executing in a privileged operating mode.

Example:

  // Enable IRQ interrupts
  libarm_set_irq(1); 

  ...

  // Disable IRQ interrupts
  libarm_set_irq(0);