rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
This commit is contained in:
parent
9171cb91b1
commit
ddf39793f3
|
@ -201,6 +201,11 @@ extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
|
||||||
MICROPY_HW_NIC_WIZNET5K \
|
MICROPY_HW_NIC_WIZNET5K \
|
||||||
MICROPY_BOARD_NETWORK_INTERFACES \
|
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
|
#define MP_STATE_PORT MP_STATE_VM
|
||||||
|
|
||||||
// Miscellaneous settings
|
// Miscellaneous settings
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include "py/mpconfig.h"
|
||||||
#include "pendsv.h"
|
#include "pendsv.h"
|
||||||
#include "RP2040.h"
|
#include "RP2040.h"
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,7 @@ enum {
|
||||||
#if MICROPY_PY_NETWORK_WIZNET5K
|
#if MICROPY_PY_NETWORK_WIZNET5K
|
||||||
PENDSV_DISPATCH_WIZNET,
|
PENDSV_DISPATCH_WIZNET,
|
||||||
#endif
|
#endif
|
||||||
|
MICROPY_BOARD_PENDSV_ENTRIES
|
||||||
PENDSV_DISPATCH_MAX
|
PENDSV_DISPATCH_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue