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:
Damien George
2026-01-12 12:20:15 +11:00
parent 570744d06c
commit adbdded185
8 changed files with 0 additions and 11 deletions

View File

@@ -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; \

View File

@@ -5,7 +5,6 @@
#define MICROPY_EVENT_POLL_HOOK \
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
} while (0);

View File

@@ -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);

View File

@@ -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);

View File

@@ -170,7 +170,6 @@
#define MICROPY_EVENT_POLL_HOOK \
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
__WFE(); \
} while (0);

View File

@@ -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);

View File

@@ -76,7 +76,6 @@
#define MICROPY_EVENT_POLL_HOOK \
do { \
extern void mp_handle_pending(bool); \
mp_handle_pending(true); \
} while (0);

View File

@@ -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);