8000 stm32/pendsv: Allow a board to add entries for pendsv_schedule_dispatch. · karfas/micropython@30268c9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30268c9

Browse files
committed
stm32/pendsv: Allow a board to add entries for pendsv_schedule_dispatch.
8000 Signed-off-by: Damien George <damien@micropython.org>
1 parent 6952282 commit 30268c9

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ports/stm32/boardctrl.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828

2929
#include "py/mpconfig.h"
3030

31+
// Additional entries for use with pendsv_schedule_dispatch.
32+
#ifndef MICROPY_BOARD_PENDSV_ENTRIES
33+
#define MICROPY_BOARD_PENDSV_ENTRIES
34+
#endif
35+
3136
#ifndef MICROPY_BOARD_STARTUP
3237
#define MICROPY_BOARD_STARTUP powerctrl_check_enter_bootloader
3338
#endif

ports/stm32/pendsv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
2727
#define MICROPY_INCLUDED_STM32_PENDSV_H
2828

29+
#include "boardctrl.h"
30+
2931
enum {
3032
PENDSV_DISPATCH_SOFT_TIMER,
3133
#if MICROPY_PY_NETWORK && MICROPY_PY_LWIP
@@ -37,6 +39,7 @@ enum {
3739
#if MICROPY_PY_BLUETOOTH && !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS
3840
PENDSV_DISPATCH_BLUETOOTH_HCI,
3941
#endif
42+
MICROPY_BOARD_PENDSV_ENTRIES
4043
PENDSV_DISPATCH_MAX
4144
};
4245

0 commit comments

Comments
 (0)
0