1// This file is part of SmallBASIC
2//
3// serial I/O, driver
4//
5// This program is distributed under the terms of the GPL v2.0 or later
6// Download the GNU Public License (GPL) from www.gnu.org
7//
8// Copyright(C) 2000 Nicholas Christopoulos
9
10#if !defined(_sbfs_serial_h)
11#define _sbfs_serial_h
12
13#include "common/sys.h"
14#include "common/device.h"
15
16int serial_open(dev_file_t *f);
17int serial_close(dev_file_t *f);
18int serial_write(dev_file_t *f, byte *data, uint32_t size);
19int serial_read(dev_file_t *f, byte *data, uint32_t size);
20uint32_t serial_length(dev_file_t *f);
21uint32_t serial_eof(dev_file_t *f);
22
23#endif
24