Hardware Monad Interface (work in progress)ContentsIndex
H.Interrupts
Description
Interrupts (section 3.4 in the paper)
Synopsis
data IRQ
= IRQ0
| IRQ1
| IRQ2
| IRQ3
| IRQ4
| IRQ5
| IRQ6
| IRQ7
| IRQ8
| IRQ9
| IRQ10
| IRQ11
| IRQ12
| IRQ13
| IRQ14
| IRQ15
enableIRQ :: IRQ -> H ()
disableIRQ :: IRQ -> H ()
eoiIRQ :: IRQ -> H ()
enableInterrupts :: H ()
disableInterrupts :: H ()
installHandler :: IRQ -> H () -> H ()
Documentation
data IRQ
Constructors
IRQ0
IRQ1
IRQ2
IRQ3
IRQ4
IRQ5
IRQ6
IRQ7
IRQ8
IRQ9
IRQ10
IRQ11
IRQ12
IRQ13
IRQ14
IRQ15
Instances
Show IRQ
Ord IRQ
Eq IRQ
Bounded IRQ
Enum IRQ
Ix IRQ
enableIRQ :: IRQ -> H ()
Enable an individual IRQ
disableIRQ :: IRQ -> H ()
Disable an individual IRQ
eoiIRQ :: IRQ -> H ()
After an interrupt from a given IRQ, further interrupts from that IRQ are disabled until the processor issues an "end-of-interrupt" acknowledgement with the eoiIRQ operation.
enableInterrupts :: H ()
Enable interrupts globally
disableInterrupts :: H ()
Disable interrupts globally
installHandler :: IRQ -> H () -> H ()
Produced by Haddock version 0.6