summaryrefslogtreecommitdiff
path: root/stm/usrsw.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-05 14:04:55 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-05 14:04:55 +0000
commit823877bce03b5d3848a0d1a7302260dc95e7a9cd (patch)
tree68e3c4a57faa679124ac873133dd499e3c44af72 /stm/usrsw.h
parentcd3c1ee3fcc1314980760cf5dcbb60e0c7ad2980 (diff)
stm: rename sw_xx to switch_xx; change Python bindings to new version.
Diffstat (limited to 'stm/usrsw.h')
-rw-r--r--stm/usrsw.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/stm/usrsw.h b/stm/usrsw.h
index 2833baaac..2da8f069b 100644
--- a/stm/usrsw.h
+++ b/stm/usrsw.h
@@ -1,7 +1,4 @@
-#ifndef __USRSW_H__
-#define __USRSW_H__
-void sw_init(void);
-int sw_get(void);
+void switch_init(void);
+int switch_get(void);
-mp_obj_t pyb_sw(void);
-#endif //__USRSW_H__
+MP_DECLARE_CONST_FUN_OBJ(pyb_switch_obj);