From e8c5fbe15f12caa15a6a3f37884129df4ef0ddad Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 22 Jun 2015 00:18:41 +0200 Subject: added dualusbio lib and example for it (not fully working yet..) --- lib/dualusbio.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/dualusbio.h (limited to 'lib/dualusbio.h') diff --git a/lib/dualusbio.h b/lib/dualusbio.h new file mode 100644 index 0000000..0f07ea6 --- /dev/null +++ b/lib/dualusbio.h @@ -0,0 +1,37 @@ +/* + * spreadspace avr utils + * + * + * Copyright (C) 2013-2015 Christian Pointner + * + * This file is part of spreadspace avr utils. + * + * spreadspace avr utils 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 + * any later version. + * + * spreadspace avr utils 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 spreadspace avr utils. If not, see . + */ + +#ifndef SPREADAVR_dualusbio_h_INCLUDED +#define SPREADAVR_dualusbio_h_INCLUDED + +#include +#include + +extern FILE usbio_port1; +extern FILE usbio_port2; + +void dualusbio_init(void); +void dualusbio_task(void); +void dualusbio_make_stdio(uint8_t port); +int16_t dualusbio_bytes_received(uint8_t port); + +#endif -- cgit v1.2.3