summaryrefslogtreecommitdiff
path: root/src/serial.h
blob: 9afef129c3ae582259863aee53355e1e50c9cbd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef SERIAL_H
#define SERIAL_H

#include "port.h"

typedef struct {
	port8_t port_3F8;
	port8_t port_3FD;	
} serial_t;

void serial_init( serial_t *serial );
void serial_put_char( serial_t *serial, const char c );
void serial_put_string( serial_t *serial, const char *s );
void serial_put_newline( serial_t *serial );

#endif // SERIAL_H