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

Lines changed: 5 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy