serial: move COM1 to serial.h

This commit is contained in:
Michael Shaw 2023-03-13 18:10:19 -04:00
commit bb6de2047e
2 changed files with 2 additions and 2 deletions

View file

@ -4,8 +4,6 @@
#include <stdio.h>
#define COM1 0x3F8
int serial_init()
{
outb(COM1 | 1, 0x00);

View file

@ -2,6 +2,8 @@
#ifndef _SERIAL_H_
#define _SERIAL_H_
#define COM1 0x3F8
void serial_write(char c);
void serial_init();