diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-03-05 12:52:35 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-03-07 15:57:58 +1100 |
| commit | 9171cb91b1ea10ad0cb3b7d4f0b7b538be72bfbb (patch) | |
| tree | 9f2b87df1a9bedb765f2e8b53082d323f37e8178 | |
| parent | 4d3897f80e329f074ab11cd0214b559a122f9778 (diff) | |
mimxrt/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
| -rw-r--r-- | ports/mimxrt/mpconfigport.h | 5 | ||||
| -rw-r--r-- | ports/mimxrt/pendsv.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/mimxrt/mpconfigport.h b/ports/mimxrt/mpconfigport.h index 772f080a9..873e9e0d1 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 64883c903..e68f487fb 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 }; |
