summaryrefslogtreecommitdiff
path: root/lib/dualusbio.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-06-22 00:18:41 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-06-22 00:18:41 +0200
commite8c5fbe15f12caa15a6a3f37884129df4ef0ddad (patch)
treeb2d47bbb1322f4bc6eb4f6c215a85a2b43fd0049 /lib/dualusbio.h
parentremoved useless header in usbio (diff)
added dualusbio lib and example for it (not fully working yet..)
Diffstat (limited to 'lib/dualusbio.h')
-rw-r--r--lib/dualusbio.h37
1 files changed, 37 insertions, 0 deletions
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 <equinox@spreadspace.org>
+ *
+ * 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 <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef SPREADAVR_dualusbio_h_INCLUDED
+#define SPREADAVR_dualusbio_h_INCLUDED
+
+#include <stdio.h>
+#include <stdint.h>
+
+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