diff options
author | Damien George <damien.p.george@gmail.com> | 2017-02-16 18:05:06 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-03-20 15:20:26 +1100 |
commit | 6e74d24f30bca3fb70876b1fb9a6b3a59850b83c (patch) | |
tree | 391a713749edac08db0efc45e6ff987b2f437dc0 /py/mpconfig.h | |
parent | bf29fe2e138a30688cfb94ad3859f903f935ced1 (diff) | |
download | micropython-6e74d24f30bca3fb70876b1fb9a6b3a59850b83c.tar.gz micropython-6e74d24f30bca3fb70876b1fb9a6b3a59850b83c.zip |
py: Add micropython.schedule() function and associated runtime code.
Diffstat (limited to 'py/mpconfig.h')
-rw-r--r-- | py/mpconfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index 7e3bd8bdbb..54cf0f3d3d 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -616,6 +616,16 @@ typedef double mp_float_t; #define MICROPY_USE_INTERNAL_PRINTF (1) #endif +// Support for internal scheduler +#ifndef MICROPY_ENABLE_SCHEDULER +#define MICROPY_ENABLE_SCHEDULER (0) +#endif + +// Maximum number of entries in the scheduler +#ifndef MICROPY_SCHEDULER_DEPTH +#define MICROPY_SCHEDULER_DEPTH (4) +#endif + // Support for generic VFS sub-system #ifndef MICROPY_VFS #define MICROPY_VFS (0) |