From 9171cb91b1ea10ad0cb3b7d4f0b7b538be72bfbb Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 5 Mar 2023 12:52:35 +0100 Subject: [PATCH] mimxrt/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation. --- ports/mimxrt/mpconfigport.h | 5 +++++ ports/mimxrt/pendsv.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h index 772f080a92..873e9e0d18 100644 --- a/ports/mimxrt/mpconfigport.h +++ b/ports/mimxrt/mpconfigport.h @@ -186,6 +186,11 @@ extern const struct _mp_obj_type_t network_lan_type; #define MICROPY_BOARD_ROOT_POINTERS #endif +// Additional entries for use with pendsv_schedule_dispatch. +#ifndef MICROPY_BOARD_PENDSV_ENTRIES +#define MICROPY_BOARD_PENDSV_ENTRIES +#endif + #define MP_STATE_PORT MP_STATE_VM // Miscellaneous settings diff --git a/ports/mimxrt/pendsv.h b/ports/mimxrt/pendsv.h index 64883c9031..e68f487fb4 100644 --- a/ports/mimxrt/pendsv.h +++ b/ports/mimxrt/pendsv.h @@ -31,6 +31,7 @@ enum { #if MICROPY_PY_NETWORK && MICROPY_PY_LWIP PENDSV_DISPATCH_LWIP, #endif + MICROPY_BOARD_PENDSV_ENTRIES PENDSV_DISPATCH_MAX };