Interrupts
We have something important to fix !
- Interrupts is a mechanism by which an I/O or instruction can suspend the normal execution of the processor and gets itself serviced like it has higher priority.
- Global interrupts configured in the chips is controlled here. The Status Register contains information about the result of the most recently executed arithmetic instruction. This information can be used for altering program flow in order to perform conditional operations.
- The Global Interrupt Enable bit must be set for the interrupts to be enabled. The individual interrupt enable control is then performed in separate control registers. If the Global Interrupt Enable Register is cleared, none of the interrupts are enabled independent of the individual interrupt enable settings.
#
Structure DefinitionsThis contains the registers to be manipulated for controlling global interrupts setup. This represents struct for Interrupt and is used to control sreg register.
#
Trait Implementationsnew
for Interrupt
#
Impl Returns new struct of Global_Interrupts.
disable
for Interrupt
#
Impl This function Disable global interrupts also known as CLI
enable
for Interrupt
#
Impl This function Enable global interrupts also known as SEI.