diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-03-05 12:53:11 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-03-07 15:59:37 +1100 |
| commit | ddf39793f3db850e9e0bd925cbd47a339ce7f5a9 (patch) | |
| tree | 9cd065ba5aff92df827f59392e4bc6284bcb8254 | |
| parent | 9171cb91b1ea10ad0cb3b7d4f0b7b538be72bfbb (diff) | |
rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
| -rw-r--r-- | ports/rp2/mpconfigport.h | 5 | ||||
| -rw-r--r-- | ports/rp2/pendsv.c | 1 | ||||
| -rw-r--r-- | ports/rp2/pendsv.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/ports/rp2/mpconfigport.h b/ports/rp2/mpconfigport.h index f5391b5a7..c987a0dc2 100644 --- a/ports/rp2/mpconfigport.h +++ b/ports/rp2/mpconfigport.h @@ -201,6 +201,11 @@ extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k; MICROPY_HW_NIC_WIZNET5K \ MICROPY_BOARD_NETWORK_INTERFACES \ +// 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/rp2/pendsv.c b/ports/rp2/pendsv.c index 91b133c06..e4f662715 100644 --- a/ports/rp2/pendsv.c +++ b/ports/rp2/pendsv.c @@ -25,6 +25,7 @@ */ #include <assert.h> +#include "py/mpconfig.h" #include "pendsv.h" #include "RP2040.h" diff --git a/ports/rp2/pendsv.h b/ports/rp2/pendsv.h index 1da3d22e5..294cef3c7 100644 --- a/ports/rp2/pendsv.h +++ b/ports/rp2/pendsv.h @@ -38,6 +38,7 @@ enum { #if MICROPY_PY_NETWORK_WIZNET5K PENDSV_DISPATCH_WIZNET, #endif + MICROPY_BOARD_PENDSV_ENTRIES PENDSV_DISPATCH_MAX }; |
