aboutsummaryrefslogtreecommitdiff
path: root/cc3200/misc/mpcallback.h
diff options
context:
space:
mode:
authorDaniel Campora2015-08-11 11:18:02 +0200
committerDaniel Campora2015-08-16 20:17:52 +0200
commitea5061e409449118ed45ce2956800780631bcf9e (patch)
tree107417699e361857372ec07670ae68770cf75832 /cc3200/misc/mpcallback.h
parent4c5bfe2d10cd8397e970c4c23f6c15b97133fcc0 (diff)
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object instead of an integer.
Diffstat (limited to 'cc3200/misc/mpcallback.h')
-rw-r--r--cc3200/misc/mpcallback.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/cc3200/misc/mpcallback.h b/cc3200/misc/mpcallback.h
index 743d73fe1..6492a2e99 100644
--- a/cc3200/misc/mpcallback.h
+++ b/cc3200/misc/mpcallback.h
@@ -62,12 +62,11 @@ extern const mp_obj_type_t pyb_callback_type;
DECLARE PUBLIC FUNCTIONS
******************************************************************************/
void mpcallback_init0 (void);
-mp_obj_t mpcallback_new (mp_obj_t parent, mp_obj_t handler, const mp_cb_methods_t *methods);
+mp_obj_t mpcallback_new (mp_obj_t parent, mp_obj_t handler, const mp_cb_methods_t *methods, bool enable);
mpcallback_obj_t *mpcallback_find (mp_obj_t parent);
void mpcallback_wake_all (void);
void mpcallback_remove (const mp_obj_t parent);
void mpcallback_handler (mp_obj_t self_in);
uint mpcallback_translate_priority (uint priority);
-mp_obj_t mpcallback_new (mp_obj_t parent, mp_obj_t handler, const mp_cb_methods_t *methods);
#endif /* MPCALLBACK_H_ */