Download AN EMBEDDED SYSTEMS KERNEL IMM

Transcript
105
#ifndef INTERRUPT H
#define INTERRUPT H
#include <regoffset.h>
extern int interrupt nested;
typedef void (∗interrupt handler)(void);
void interrupt register (int irq , interrupt handler handler);
void interrupt hw( reg offset ∗regs );
//void interrupt timer(struct reg offset ∗regs );
void interrupt init (void);
#endif /∗ INTERRUPT H ∗/
: include/kernel.h
/∗
∗ Kernel header. Global kernel stuff
∗
∗ This file is subject to the terms and conditions of the GNU General
∗ Public License . See the file ”COPYING” in the main directory of
∗ this archive for more details .
∗/
#ifndef KERNEL H
#define KERNEL H
void panic(char ∗buf);
#endif /∗ KERNEL H ∗/
: include/lcd.h
/∗
∗ LCD Display driver header
∗
∗ This file is subject to the terms and conditions of the GNU General
∗ Public License . See the file ”COPYING” in the main directory of
∗ this archive for more details .
∗/
#ifndef LCD H
#define LCD H
void lcd int (unsigned int num);
void lcd message(const char∗ str);
#endif /∗ LCD H ∗/
: include/list.h