diff options
| author | Damien George | 2021-04-08 17:00:26 +1000 |
|---|---|---|
| committer | Damien George | 2021-04-08 17:00:26 +1000 |
| commit | 4d9e657f0ee881f4a41093ab89ec91d03613744d (patch) | |
| tree | f5b549c0660995b2445d218b73fbea0a96a4b29c /ports | |
| parent | cb396827f56f79741efeaa127b9c71c72bba3584 (diff) | |
stm32/mpconfigport.h: Add support for a board to specify root pointers.
A board can now define MICROPY_BOARD_ROOT_POINTERS to specify any custom
root pointers.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/stm32/mpconfigport.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ports/stm32/mpconfigport.h b/ports/stm32/mpconfigport.h index 174ef22f2..2888cac88 100644 --- a/ports/stm32/mpconfigport.h +++ b/ports/stm32/mpconfigport.h @@ -353,6 +353,10 @@ struct _mp_bluetooth_btstack_root_pointers_t; #define MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK #endif +#ifndef MICROPY_BOARD_ROOT_POINTERS +#define MICROPY_BOARD_ROOT_POINTERS +#endif + #define MICROPY_PORT_ROOT_POINTERS \ const char *readline_hist[8]; \ \ @@ -384,9 +388,13 @@ struct _mp_bluetooth_btstack_root_pointers_t; /* list of registered NICs */ \ mp_obj_list_t mod_network_nic_list; \ \ + /* root pointers for sub-systems */ \ MICROPY_PORT_ROOT_POINTER_MBEDTLS \ MICROPY_PORT_ROOT_POINTER_BLUETOOTH_NIMBLE \ - MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK \ + MICROPY_PORT_ROOT_POINTER_BLUETOOTH_BTSTACK \ + \ + /* root pointers defined by a board */ \ + MICROPY_BOARD_ROOT_POINTERS \ // type definitions for the specific machine |
