|
@ -33,6 +33,7 @@ |
|
|
#include "ets_alt_task.h" |
|
|
#include "ets_alt_task.h" |
|
|
#include "py/obj.h" |
|
|
#include "py/obj.h" |
|
|
#include "py/mpstate.h" |
|
|
#include "py/mpstate.h" |
|
|
|
|
|
#include "py/runtime.h" |
|
|
#include "extmod/misc.h" |
|
|
#include "extmod/misc.h" |
|
|
#include "lib/utils/pyexec.h" |
|
|
#include "lib/utils/pyexec.h" |
|
|
|
|
|
|
|
@ -130,11 +131,7 @@ void mp_hal_delay_ms(uint32_t delay) { |
|
|
|
|
|
|
|
|
void ets_event_poll(void) { |
|
|
void ets_event_poll(void) { |
|
|
ets_loop_iter(); |
|
|
ets_loop_iter(); |
|
|
if (MP_STATE_VM(mp_pending_exception) != NULL) { |
|
|
mp_handle_pending(); |
|
|
mp_obj_t obj = MP_STATE_VM(mp_pending_exception); |
|
|
|
|
|
MP_STATE_VM(mp_pending_exception) = MP_OBJ_NULL; |
|
|
|
|
|
nlr_raise(obj); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void __assert_func(const char *file, int line, const char *func, const char *expr) { |
|
|
void __assert_func(const char *file, int line, const char *func, const char *expr) { |
|
|