summaryrefslogtreecommitdiff
path: root/shared-module/vectorio/__init__.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-05-12 18:22:57 -0700
committerGitHub <noreply@github.com>2020-05-12 18:22:57 -0700
commit277e8d528bef84cefe854d527bf5f822e0ec8ceb (patch)
treebeaa452a5dacf21e663a884e358e2ac2d223b777 /shared-module/vectorio/__init__.h
parentbc40034a08a7c3b371a13610a896e1ca40c4a329 (diff)
parent75f9969860870a4ae636c74ae210275413b13c2f (diff)
Merge branch 'master' into Optical-Encoder-Module
Diffstat (limited to 'shared-module/vectorio/__init__.h')
-rw-r--r--shared-module/vectorio/__init__.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/shared-module/vectorio/__init__.h b/shared-module/vectorio/__init__.h
new file mode 100644
index 000000000..6ae381f06
--- /dev/null
+++ b/shared-module/vectorio/__init__.h
@@ -0,0 +1,15 @@
+#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_INIT_H
+#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_INIT_H
+
+#include "py/obj.h"
+
+typedef void event_function(mp_obj_t obj);
+
+typedef struct {
+ mp_obj_t obj;
+ event_function *event;
+} vectorio_event_t;
+
+
+#endif
+