Skip to content

Commit e03c757

Browse files
laurensvalkdlech
authored andcommitted
bricks: Add raise_exc to mp_handle_pending
This follows: micropython/micropython@98a3911
1 parent 15c0ef5 commit e03c757

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

bricks/ev3dev/brickconfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
pbio_do_one_event(); \
3131
} while (0);
3232
#define MICROPY_EVENT_POLL_HOOK do { \
33-
extern void mp_handle_pending(void); \
34-
mp_handle_pending(); \
33+
extern void mp_handle_pending(bool); \
34+
mp_handle_pending(true); \
3535
extern int pbio_do_one_event(void); \
3636
while (pbio_do_one_event()) { } \
3737
MP_THREAD_GIL_EXIT(); \

bricks/ev3dev/ev3dev_mphal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void mp_hal_delay_ms(mp_uint_t ms) {
140140
};
141141
struct timespec remain;
142142
for (;;) {
143-
mp_handle_pending();
143+
mp_handle_pending(true);
144144
MP_THREAD_GIL_EXIT();
145145
int ret = clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, &remain);
146146
MP_THREAD_GIL_ENTER();

bricks/ev3dev/modusignal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ STATIC mp_obj_t usignal_pause(void) {
1919
MP_THREAD_GIL_EXIT();
2020
pause();
2121
MP_THREAD_GIL_ENTER();
22-
mp_handle_pending();
22+
mp_handle_pending(true);
2323
return mp_const_none;
2424
}
2525
STATIC MP_DEFINE_CONST_FUN_OBJ_0(usignal_pause_obj, usignal_pause);

bricks/nxt/mpconfigport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ extern const struct _mp_obj_module_t pb_module_nxtdevices;
148148

149149
#define MICROPY_EVENT_POLL_HOOK \
150150
do { \
151-
extern void mp_handle_pending(void); \
152-
mp_handle_pending(); \
151+
extern void mp_handle_pending(bool); \
152+
mp_handle_pending(true); \
153153
extern int pbio_do_one_event(void); \
154154
while (pbio_do_one_event()) { } \
155155
} while (0);

bricks/stm32/configport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ static inline mp_uint_t disable_irq(void) {
191191

192192
#define MICROPY_EVENT_POLL_HOOK \
193193
do { \
194-
extern void mp_handle_pending(void); \
195-
mp_handle_pending(); \
194+
extern void mp_handle_pending(bool); \
195+
mp_handle_pending(true); \
196196
extern int pbio_do_one_event(void); \
197197
while (pbio_do_one_event()) { } \
198198
__WFI(); \

0 commit comments

Comments
 (0)