diff options
| author | Damien George <damien@micropython.org> | 2023-12-14 17:06:56 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-12-18 12:20:47 +1100 |
| commit | 395886caa3406a25790bd27e74ec63a96d8e5b4d (patch) | |
| tree | ab08973886ada1953607909ffe4d2ea0561ce3b4 /ports/esp8266/modos.c | |
| parent | 0e706a62b168b7c2818f99d8785fe4dd31af9169 (diff) | |
extmod/modos: Factor os.dupterm_notify() function to common extmod code.
esp8266 doesn't need ets task because the notify is now scheduled (see
commits 7d57037906cf0274af08bd2eccbfffabe0ea66e3 and
c60caf19951c8326be9c3b6f3b016a4d21f69276 for relevant history).
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/esp8266/modos.c')
| -rw-r--r-- | ports/esp8266/modos.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/ports/esp8266/modos.c b/ports/esp8266/modos.c index 0ddcba2a3..32c6a0667 100644 --- a/ports/esp8266/modos.c +++ b/ports/esp8266/modos.c @@ -25,16 +25,10 @@ * THE SOFTWARE. */ -#include <string.h> +// This file is never compiled standalone, it's included directly from +// extmod/modos.c via MICROPY_PY_OS_INCLUDEFILE. -#include "py/objtuple.h" -#include "py/objstr.h" -#include "extmod/misc.h" #include "extmod/modmachine.h" -#include "extmod/vfs.h" -#include "extmod/vfs_fat.h" -#include "extmod/vfs_lfs.h" -#include "genhdr/mpversion.h" #include "user_interface.h" STATIC const char *mp_os_uname_release(void) { @@ -60,10 +54,3 @@ void mp_os_dupterm_stream_detached_attached(mp_obj_t stream_detached, mp_obj_t s --uart_attached_to_dupterm; } } - -STATIC mp_obj_t mp_os_dupterm_notify(mp_obj_t obj_in) { - (void)obj_in; - mp_hal_signal_dupterm_input(); - return mp_const_none; -} -STATIC MP_DEFINE_CONST_FUN_OBJ_1(mp_os_dupterm_notify_obj, mp_os_dupterm_notify); |
