diff options
| author | iabdalkader <i.abdalkader@gmail.com> | 2023-03-05 12:54:48 +0100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-03-07 15:59:58 +1100 |
| commit | fb94ae48e91a0893e78dc33496bb0da18573bb4f (patch) | |
| tree | 2a0605d78fc30e078e4a1c9d1eccf4239b059e1e | |
| parent | ddf39793f3db850e9e0bd925cbd47a339ce7f5a9 (diff) | |
samd/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
| -rw-r--r-- | ports/samd/mpconfigport.h | 5 | ||||
| -rw-r--r-- | ports/samd/pendsv.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ports/samd/mpconfigport.h b/ports/samd/mpconfigport.h index 8e51720fd..613c24c97 100644 --- a/ports/samd/mpconfigport.h +++ b/ports/samd/mpconfigport.h @@ -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); diff --git a/ports/samd/pendsv.h b/ports/samd/pendsv.h index c21af906b..6671fa4e2 100644 --- a/ports/samd/pendsv.h +++ b/ports/samd/pendsv.h @@ -28,6 +28,7 @@ enum { PENDSV_DISPATCH_SOFT_TIMER, // For later & for having at least one entry + MICROPY_BOARD_PENDSV_ENTRIES PENDSV_DISPATCH_MAX }; |
