stm32/pendsv: Allow a board to add entries for pendsv_schedule_dispatch.
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
69522822de
commit
30268c93dc
@ -28,6 +28,11 @@
|
|||||||
|
|
||||||
#include "py/mpconfig.h"
|
#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
|
#ifndef MICROPY_BOARD_STARTUP
|
||||||
#define MICROPY_BOARD_STARTUP powerctrl_check_enter_bootloader
|
#define MICROPY_BOARD_STARTUP powerctrl_check_enter_bootloader
|
||||||
#endif
|
#endif
|
||||||
|
@ -26,6 +26,8 @@
|
|||||||
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
|
#ifndef MICROPY_INCLUDED_STM32_PENDSV_H
|
||||||
#define MICROPY_INCLUDED_STM32_PENDSV_H
|
#define MICROPY_INCLUDED_STM32_PENDSV_H
|
||||||
|
|
||||||
|
#include "boardctrl.h"
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
PENDSV_DISPATCH_SOFT_TIMER,
|
PENDSV_DISPATCH_SOFT_TIMER,
|
||||||
#if MICROPY_PY_NETWORK && MICROPY_PY_LWIP
|
#if MICROPY_PY_NETWORK && MICROPY_PY_LWIP
|
||||||
@ -37,6 +39,7 @@ enum {
|
|||||||
#if MICROPY_PY_BLUETOOTH && !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS
|
#if MICROPY_PY_BLUETOOTH && !MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS
|
||||||
PENDSV_DISPATCH_BLUETOOTH_HCI,
|
PENDSV_DISPATCH_BLUETOOTH_HCI,
|
||||||
#endif
|
#endif
|
||||||
|
MICROPY_BOARD_PENDSV_ENTRIES
|
||||||
PENDSV_DISPATCH_MAX
|
PENDSV_DISPATCH_MAX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user