15 lines
272 B
C
15 lines
272 B
C
#ifndef _BOOT_DRIVERS_UART_H
|
|
#define _BOOT_DRIVERS_UART_H
|
|
|
|
#include <libboot/types.h>
|
|
|
|
#define COM1 0x3F8
|
|
#define COM2 0x2F8
|
|
#define COM3 0x3E8
|
|
#define COM4 0x2E8
|
|
|
|
void uart_init();
|
|
int uart_write(uint8_t data);
|
|
int uart_read(uint8_t* data);
|
|
|
|
#endif //_BOOT_DRIVERS_UART_H
|