samd/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.

This commit is contained in:
iabdalkader 2023-03-05 12:54:48 +01:00 committed by Damien George
parent ddf39793f3
commit fb94ae48e9
2 changed files with 6 additions and 0 deletions

View File

@ -110,6 +110,11 @@
#define MP_STATE_PORT MP_STATE_VM
// Additional entries for use with pendsv_schedule_dispatch.
#ifndef MICROPY_BOARD_PENDSV_ENTRIES
#define MICROPY_BOARD_PENDSV_ENTRIES
#endif
// Miscellaneous settings
__attribute__((always_inline)) static inline void enable_irq(uint32_t state) {
__set_PRIMASK(state);

View File

@ -28,6 +28,7 @@
enum {
PENDSV_DISPATCH_SOFT_TIMER, // For later & for having at least one entry
MICROPY_BOARD_PENDSV_ENTRIES
PENDSV_DISPATCH_MAX
};