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

#include <stdint.h>

#include "port.h"

typedef struct {
	port_t port_3F8;
	port_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