Skip to content

Commit fb94ae4

Browse files
iabdalkaderdpgeorge
authored andcommitted
samd/pendsv: Add MICROPY_BOARD_PENDSV_ENTRIES for board customisation.
1 parent ddf3979 commit fb94ae4

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ports/samd/mpconfigport.h

+5
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@
110110

111111
#define MP_STATE_PORT MP_STATE_VM
112112

113+
// Additional entries for use with pendsv_schedule_dispatch.
114+
#ifndef MICROPY_BOARD_PENDSV_ENTRIES
115+
#define MICROPY_BOARD_PENDSV_ENTRIES
116+
#endif
117+
113118
// Miscellaneous settings
114119
__attribute__((always_inline)) static inline void enable_irq(uint32_t state) {
115120
__set_PRIMASK(state);

ports/samd/pendsv.h

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
enum {
3030
PENDSV_DISPATCH_SOFT_TIMER, // For later & for having at least one entry
31+
MICROPY_BOARD_PENDSV_ENTRIES
3132
PENDSV_DISPATCH_MAX
3233
};
3334

0 commit comments

Comments
 (0)