aboutsummaryrefslogtreecommitdiff
path: root/stm/usrsw.h
diff options
context:
space:
mode:
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);