rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.

This commit is contained in:
iabdalkader 2023-03-05 12:53:11 +01:00 committed by Damien George
parent 9171cb91b1
commit ddf39793f3
3 changed files with 7 additions and 0 deletions

View File

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

View File

@ -25,6 +25,7 @@
*/
#include <assert.h>
#include "py/mpconfig.h"
#include "pendsv.h"
#include "RP2040.h"

View File

@ -38,6 +38,7 @@ enum {
#if MICROPY_PY_NETWORK_WIZNET5K
PENDSV_DISPATCH_WIZNET,
#endif
MICROPY_BOARD_PENDSV_ENTRIES
PENDSV_DISPATCH_MAX
};