Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Typedefs | Functions | Variables
interrupt.h File Reference
#include <stddef.h>
#include "bcm2837.h"

Go to the source code of this file.

Typedefs

typedef interrupt(* interrupt_handler_t )(void)
 
typedef unsigned long irqmask
 

Functions

void enable (void)
 
irqmask disable (void)
 
irqmask restore (irqmask)
 
void enable_irq (irqmask)
 
void disable_irq (irqmask)
 

Variables

interrupt_handler_t interruptVector []
 

Detailed Description

Constants and declarations associated with interrupt handling.

Typedef Documentation

typedef unsigned long irqmask

machine status for disable/restore

Function Documentation

void disable_irq ( irqmask  irq_num)

Disable an interrupt request line.

Parameters
irq_numindex of the interrupt to disable, which must be valid on the current platform.
void enable_irq ( irqmask  irq_num)

Enable an interrupt request line.

Parameters
irq_numindex of the interrupt to enable, which must be valid on the current platform.

Variable Documentation

interrupt_handler_t interruptVector[]

Table of Xinu's interrupt handler functions. This is an array mapping IRQ numbers to handler functions.