We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef0738 commit a0cb4edCopy full SHA for a0cb4ed
esp8266/mpconfigport.h
@@ -69,6 +69,15 @@
69
#define MICROPY_VFS_FAT (1)
70
71
#define MICROPY_EVENT_POLL_HOOK {ets_event_poll();}
72
+#define MICROPY_VM_HOOK_COUNT (10)
73
+#define MICROPY_VM_HOOK_INIT static uint vm_hook_divisor = MICROPY_VM_HOOK_COUNT;
74
+#define MICROPY_VM_HOOK_POLL if (--vm_hook_divisor == 0) { \
75
+ vm_hook_divisor = MICROPY_VM_HOOK_COUNT; \
76
+ extern void ets_loop_iter(void); \
77
+ ets_loop_iter(); \
78
+ }
79
+#define MICROPY_VM_HOOK_LOOP MICROPY_VM_HOOK_POLL
80
+#define MICROPY_VM_HOOK_RETURN MICROPY_VM_HOOK_POLL
81
82
// type definitions for the specific machine
83
0 commit comments