Add serial driver and irq support
This commit is contained in:
17
sw/kernel/devices/serial.h
Normal file
17
sw/kernel/devices/serial.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef _SERIAL_H
|
||||
#define _SERIAL_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
void serial_handle_irq();
|
||||
|
||||
void serial_init();
|
||||
|
||||
void serial_putc(char c);
|
||||
void serial_puts(char* s);
|
||||
|
||||
|
||||
char serial_getc();
|
||||
char serial_getc_nb();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user