summaryrefslogtreecommitdiff
path: root/src/kernel/include/serial.h
blob: 824e2450a2650729e1710689d2dbce164476fc00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//these com values are just guesses! Figure out how to find em later if you want
#ifndef _SERIAL_H_
#define _SERIAL_H_

#include <stdint.h>
#define COM1 0x3f8
#define COM2 0x2f8
#define COM3 0x3e8
#define COM4 0x2e8


int init_serial(uint16_t port);
void serial_out(uint16_t port, char *string);
void _putchar_serial(uint16_t port, char character);

#endif