Skip to content

Commit 0b016f6

Browse files
committed
rp2 patch
1 parent ee5ce98 commit 0b016f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/rp2/pendsv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ enum {
4242

4343
#define PENDSV_DISPATCH_NUM_SLOTS PENDSV_DISPATCH_MAX
4444

45+
// PendSV IRQ priority, to run system-level tasks that preempt the main thread.
46+
#define IRQ_PRI_PENDSV PICO_LOWEST_IRQ_PRIORITY
47+
4548
typedef void (*pendsv_dispatch_t)(void);
4649

4750
void pendsv_init(void);

0 commit comments

Comments
 (0)