Skip to content

Commit

Permalink
rp2/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader authored and dpgeorge committed Mar 7, 2023
1 parent 9171cb9 commit ddf3979
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ports/rp2/mpconfigport.h
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions ports/rp2/pendsv.c
Expand Up @@ -25,6 +25,7 @@
*/

#include <assert.h>
#include "py/mpconfig.h"
#include "pendsv.h"
#include "RP2040.h"

Expand Down
1 change: 1 addition & 0 deletions ports/rp2/pendsv.h
Expand Up @@ -38,6 +38,7 @@ enum {
#if MICROPY_PY_NETWORK_WIZNET5K
PENDSV_DISPATCH_WIZNET,
#endif
MICROPY_BOARD_PENDSV_ENTRIES
PENDSV_DISPATCH_MAX
};

Expand Down

0 comments on commit ddf3979

Please sign in to comment.