serial: move COM1 to serial.h
This commit is contained in:
parent
04805857c4
commit
bb6de2047e
2 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#define COM1 0x3F8
|
||||
|
||||
int serial_init()
|
||||
{
|
||||
outb(COM1 | 1, 0x00);
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
#ifndef _SERIAL_H_
|
||||
#define _SERIAL_H_
|
||||
|
||||
#define COM1 0x3F8
|
||||
|
||||
void serial_write(char c);
|
||||
void serial_init();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue