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

#include "port.h"

typedef struct serial_t {
	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_hex( serial_t *serial, const uint32_t v );
void serial_put_newline( serial_t *serial );

#endif // SERIAL_H