summaryrefslogtreecommitdiff
path: root/usb-i2c-sl018/stepper.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@wirdorange.org>2013-02-05 22:59:32 +0000
committerOthmar Gsenger <otti@wirdorange.org>2013-02-05 22:59:32 +0000
commitbc5f0ffc76161ad1eb9122f0bcc84b3372ed090a (patch)
treec6dbef03e24fd4954f78439b78b770ac18ff8791 /usb-i2c-sl018/stepper.h
parentusb-led now uses stdio stream (diff)
added basic stepper support
git-svn-id: https://svn.spreadspace.org/avr/trunk@119 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'usb-i2c-sl018/stepper.h')
-rw-r--r--usb-i2c-sl018/stepper.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/usb-i2c-sl018/stepper.h b/usb-i2c-sl018/stepper.h
new file mode 100644
index 0000000..7cc5f3b
--- /dev/null
+++ b/usb-i2c-sl018/stepper.h
@@ -0,0 +1,34 @@
+/*
+ * spreadspace avr utils
+ *
+ *
+ * Copyright (C) 2013 Christian Pointner <equinox@spreadspace.org>
+ * Othmar Gsenger <otti@wirdorange.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 R3TUER_stepper_h_INCLUDED
+#define R3TUER_stepper_h_INCLUDED
+
+typedef enum { dir_open = 0, dir_close = 1 } stepper_direction_t;
+
+void handle_step(void);
+void init_stepper(void);
+void start_stepper(stepper_direction_t direction);
+void stop_stepper(void);
+
+#endif