* Move UART code into its own file

* Set up vectored interrupt controller
* Set up timer interrupt
This commit is contained in:
2011-05-21 22:26:19 +00:00
parent 91c1c7e6be
commit e1b1b60a53
9 changed files with 272 additions and 84 deletions

11
uart.h Normal file
View File

@@ -0,0 +1,11 @@
#ifndef __UART_H
#define __UART_H
void init_uart(void);
void putch(char c);
void putstr(char *s);
void putint(unsigned int n);
void puthex(unsigned int n);
char getch(void);
#endif /* __UART_H */