aboutsummaryrefslogtreecommitdiff
path: root/stm/usrsw.h
diff options
context:
space:
mode:
authormux2014-01-05 14:52:37 +0200
committermux2014-01-05 14:56:46 +0200
commitde7fcc0c065c6854e02e0146165be0940fd30510 (patch)
tree7f8ff91cd9961d9e720ef5f9da0074671652f6fa /stm/usrsw.h
parent45b43c21c4f8e30dcff00c2429eddba20ca002aa (diff)
Move user switch code into a separate module
* Move user switch code from main.c into a separate module (usrsw) * Add usrsw.c to Makefile
Diffstat (limited to 'stm/usrsw.h')
-rw-r--r--stm/usrsw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/stm/usrsw.h b/stm/usrsw.h
new file mode 100644
index 000000000..2833baaac
--- /dev/null
+++ b/stm/usrsw.h
@@ -0,0 +1,7 @@
+#ifndef __USRSW_H__
+#define __USRSW_H__
+void sw_init(void);
+int sw_get(void);
+
+mp_obj_t pyb_sw(void);
+#endif //__USRSW_H__