From fad43aa28bdf319d346c4d6ca1dd4b6971267eca Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Tue, 3 Jan 2012 01:50:41 +0100 Subject: Bring some structure to this whole mess --- serial.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 serial.h (limited to 'serial.h') diff --git a/serial.h b/serial.h new file mode 100644 index 0000000..5f6d7b6 --- /dev/null +++ b/serial.h @@ -0,0 +1,30 @@ +/* + * Copyright 2012 (C) Christian Franke + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with This program. If not, see . + * + */ +#ifndef SERIAL_H +#define SERIAL_H + +#include + +extern uint16_t serial_rx_cb(char *buffer, uint16_t len); + +void serial_send(const char *buffer, uint16_t len, uint8_t urgent); +void serial_toggle_verbose(void); +void serial_init(void); + +#endif + -- cgit v1.2.1