Skip to content

Commit ddf3979

Browse files
iabdalkaderdpgeorge
authored andcommitted
rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
1 parent 9171cb9 commit ddf3979

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

ports/rp2/mpconfigport.h

+5
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ extern const struct _mp_obj_type_t mod_network_nic_type_wiznet5k;
201201
MICROPY_HW_NIC_WIZNET5K \
202202
MICROPY_BOARD_NETWORK_INTERFACES \
203203

204+
// Additional entries for use with pendsv_schedule_dispatch.
205+
#ifndef MICROPY_BOARD_PENDSV_ENTRIES
206+
#define MICROPY_BOARD_PENDSV_ENTRIES
207+
#endif
208+
204209
#define MP_STATE_PORT MP_STATE_VM
205210

206211
// Miscellaneous settings

ports/rp2/pendsv.c

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
*/
2626

2727
#include <assert.h>
28+
#include "py/mpconfig.h"
2829
#include "pendsv.h"
2930
#include "RP2040.h"
3031

ports/rp2/pendsv.h

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ enum {
3838
#if MICROPY_PY_NETWORK_WIZNET5K
3939
PENDSV_DISPATCH_WIZNET,
4040
#endif
41+
MICROPY_BOARD_PENDSV_ENTRIES
4142
PENDSV_DISPATCH_MAX
4243
};
4344

0 commit comments

Comments
 (0)