summaryrefslogtreecommitdiff
path: root/ports/stm32/boardctrl.h
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-10-13 18:40:06 +1100
committerDamien George <damien@micropython.org>2021-10-20 21:20:18 +1100
commit30268c93dc52116bc6c2041c55de486180b4eb03 (patch)
tree9555f4dd11ef9a75990bb0f240ed6369a95d9b70 /ports/stm32/boardctrl.h
parent69522822ded80a2462d89ebee11197d3ef24499f (diff)
stm32/pendsv: Allow a board to add entries for pendsv_schedule_dispatch.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/stm32/boardctrl.h')
-rw-r--r--ports/stm32/boardctrl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ports/stm32/boardctrl.h b/ports/stm32/boardctrl.h
index c870af32a..0878a453b 100644
--- a/ports/stm32/boardctrl.h
+++ b/ports/stm32/boardctrl.h
@@ -28,6 +28,11 @@
#include "py/mpconfig.h"
+// Additional entries for use with pendsv_schedule_dispatch.
+#ifndef MICROPY_BOARD_PENDSV_ENTRIES
+#define MICROPY_BOARD_PENDSV_ENTRIES
+#endif
+
#ifndef MICROPY_BOARD_STARTUP
#define MICROPY_BOARD_STARTUP powerctrl_check_enter_bootloader
#endif