mirror of
https://github.com/micropython/micropython.git
synced 2026-02-12 22:20:18 +01:00
ports: Remove incorrect and unnecessary mp_handle_pending declaration.
In c57aebf790 `mp_handle_pending()` became a
static-inline function. So these declarations in `mpconfigport.h` are
incorrect and removed by this commit.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -309,7 +309,6 @@ void *esp_native_code_commit(void *, size_t, void *);
|
||||
#if MICROPY_PY_THREAD
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
MICROPY_PY_SOCKET_EVENTS_HANDLER \
|
||||
MP_THREAD_GIL_EXIT(); \
|
||||
@@ -324,7 +323,6 @@ void *esp_native_code_commit(void *, size_t, void *);
|
||||
#endif
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
MICROPY_PY_SOCKET_EVENTS_HANDLER \
|
||||
MICROPY_PY_WAIT_FOR_INTERRUPT; \
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
} while (0);
|
||||
|
||||
|
||||
@@ -224,7 +224,6 @@ extern const struct _mp_obj_type_t network_lan_type;
|
||||
#ifndef MICROPY_EVENT_POLL_HOOK
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
__WFE(); \
|
||||
} while (0);
|
||||
|
||||
@@ -379,7 +379,6 @@ long unsigned int rng_generate_random_word(void);
|
||||
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
__WFI(); \
|
||||
} while (0);
|
||||
|
||||
@@ -170,7 +170,6 @@
|
||||
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
__WFE(); \
|
||||
} while (0);
|
||||
|
||||
@@ -234,7 +234,6 @@ typedef long mp_off_t;
|
||||
#if MICROPY_PY_THREAD
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
if (pyb_thread_enabled) { \
|
||||
MP_THREAD_GIL_EXIT(); \
|
||||
@@ -249,7 +248,6 @@ typedef long mp_off_t;
|
||||
#else
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
__WFI(); \
|
||||
} while (0);
|
||||
|
||||
@@ -76,7 +76,6 @@
|
||||
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
} while (0);
|
||||
|
||||
|
||||
@@ -168,7 +168,6 @@ typedef long mp_off_t;
|
||||
#if MICROPY_PY_THREAD
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
MP_THREAD_GIL_EXIT(); \
|
||||
k_msleep(1); \
|
||||
@@ -177,7 +176,6 @@ typedef long mp_off_t;
|
||||
#else
|
||||
#define MICROPY_EVENT_POLL_HOOK \
|
||||
do { \
|
||||
extern void mp_handle_pending(bool); \
|
||||
mp_handle_pending(true); \
|
||||
k_msleep(1); \
|
||||
} while (0);
|
||||
|
||||
Reference in New Issue
Block a user