mimxrt/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.

This commit is contained in:
iabdalkader 2023-03-05 12:52:35 +01:00 committed by Damien George
parent 4d3897f80e
commit 9171cb91b1
2 changed files with 6 additions and 0 deletions

View File

@ -186,6 +186,11 @@ extern const struct _mp_obj_type_t network_lan_type;
#define MICROPY_BOARD_ROOT_POINTERS #define MICROPY_BOARD_ROOT_POINTERS
#endif #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 #define MP_STATE_PORT MP_STATE_VM
// Miscellaneous settings // Miscellaneous settings

View File

@ -31,6 +31,7 @@ enum {
#if MICROPY_PY_NETWORK && MICROPY_PY_LWIP #if MICROPY_PY_NETWORK && MICROPY_PY_LWIP
PENDSV_DISPATCH_LWIP, PENDSV_DISPATCH_LWIP,
#endif #endif
MICROPY_BOARD_PENDSV_ENTRIES
PENDSV_DISPATCH_MAX PENDSV_DISPATCH_MAX
}; };