Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 1 | // Options to control how MicroPython is built for this port, |
| 2 | // overriding defaults in py/mpconfig.h. |
| 3 | |
Jim Mussared | 8db517f | 2019-08-09 18:07:50 +1000 | [diff] [blame] | 4 | // Board-specific definitions |
| 5 | #include "mpconfigboard.h" |
| 6 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 7 | #include <stdint.h> |
| 8 | #include <alloca.h> |
robert | b406289 | 2020-08-22 20:56:26 +0200 | [diff] [blame] | 9 | #include "esp_system.h" |
MikeTeachman | 6d5296e | 2021-11-09 20:41:34 -0800 | [diff] [blame] | 10 | #include "freertos/FreeRTOS.h" |
| 11 | #include "driver/i2s.h" |
Jim Mussared | 96008ff | 2019-09-13 23:04:13 +1000 | [diff] [blame] | 12 | |
Damien George | c8cd5a9 | 2022-02-18 15:50:01 +1100 | [diff] [blame] | 13 | #ifndef MICROPY_CONFIG_ROM_LEVEL |
| 14 | #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_EXTRA_FEATURES) |
| 15 | #endif |
| 16 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 17 | // object representation and NLR handling |
| 18 | #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_A) |
| 19 | #define MICROPY_NLR_SETJMP (1) |
Damien George | 6823514 | 2021-07-18 12:11:21 +1000 | [diff] [blame] | 20 | #if CONFIG_IDF_TARGET_ESP32C3 |
| 21 | #define MICROPY_GCREGS_SETJMP (1) |
| 22 | #endif |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 23 | |
| 24 | // memory allocation policies |
| 25 | #define MICROPY_ALLOC_PATH_MAX (128) |
| 26 | |
| 27 | // emitters |
| 28 | #define MICROPY_PERSISTENT_CODE_LOAD (1) |
Damien George | 6823514 | 2021-07-18 12:11:21 +1000 | [diff] [blame] | 29 | #if !CONFIG_IDF_TARGET_ESP32C3 |
Damien George | 917f027 | 2019-09-10 13:47:44 +1000 | [diff] [blame] | 30 | #define MICROPY_EMIT_XTENSAWIN (1) |
Damien George | 6823514 | 2021-07-18 12:11:21 +1000 | [diff] [blame] | 31 | #endif |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 32 | |
Damien George | f63b4f8 | 2022-06-09 12:36:45 +1000 | [diff] [blame] | 33 | // workaround for xtensa-esp32-elf-gcc esp-2020r3, which can generate wrong code for loops |
| 34 | // see https://github.com/espressif/esp-idf/issues/9130 |
| 35 | // this was fixed in newer versions of the compiler by: |
| 36 | // "gas: use literals/const16 for xtensa loop relaxation" |
| 37 | // https://github.com/jcmvbkbc/binutils-gdb-xtensa/commit/403b0b61f6d4358aee8493cb1d11814e368942c9 |
| 38 | #define MICROPY_COMP_CONST_FOLDING_COMPILER_WORKAROUND (1) |
| 39 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 40 | // optimisations |
| 41 | #define MICROPY_OPT_COMPUTED_GOTO (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 42 | |
| 43 | // Python internal features |
| 44 | #define MICROPY_READER_VFS (1) |
| 45 | #define MICROPY_ENABLE_GC (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 46 | #define MICROPY_ENABLE_EMERGENCY_EXCEPTION_BUF (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 47 | #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_MPZ) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 48 | #define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_NORMAL) |
| 49 | #define MICROPY_WARNINGS (1) |
| 50 | #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 51 | #define MICROPY_STREAMS_POSIX_API (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 52 | #define MICROPY_MODULE_FROZEN_STR (0) |
| 53 | #define MICROPY_MODULE_FROZEN_MPY (1) |
| 54 | #define MICROPY_QSTR_EXTRA_POOL mp_qstr_frozen_const_pool |
Thorsten von Eicken | 902da05 | 2020-11-11 17:46:18 -0800 | [diff] [blame] | 55 | #define MICROPY_USE_INTERNAL_ERRNO (0) // errno.h from xtensa-esp32-elf/sys-include/sys |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 56 | #define MICROPY_USE_INTERNAL_PRINTF (0) // ESP32 SDK requires its own printf |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 57 | #define MICROPY_SCHEDULER_DEPTH (8) |
| 58 | #define MICROPY_VFS (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 59 | |
| 60 | // control over Python builtins |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 61 | #define MICROPY_PY_STR_BYTES_CMP_WARN (1) |
Jim Mussared | bfc8e88 | 2021-08-04 15:35:00 +1000 | [diff] [blame] | 62 | #define MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 63 | #define MICROPY_PY_BUILTINS_HELP_TEXT esp32_help_text |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 64 | #define MICROPY_PY_IO_BUFFEREDWRITER (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 65 | #define MICROPY_PY_UTIME_MP_HAL (1) |
| 66 | #define MICROPY_PY_THREAD (1) |
| 67 | #define MICROPY_PY_THREAD_GIL (1) |
| 68 | #define MICROPY_PY_THREAD_GIL_VM_DIVISOR (32) |
| 69 | |
| 70 | // extended modules |
Damien George | da2b5fa | 2021-02-14 01:36:30 +1100 | [diff] [blame] | 71 | #ifndef MICROPY_PY_BLUETOOTH |
| 72 | #define MICROPY_PY_BLUETOOTH (1) |
Damien George | 5dbb822 | 2021-03-17 12:35:59 +1100 | [diff] [blame^] | 73 | #define MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS (1) |
| 74 | #define MICROPY_PY_BLUETOOTH_USE_SYNC_EVENTS_WITH_INTERLOCK (1) |
| 75 | #define MICROPY_PY_BLUETOOTH_SYNC_EVENT_STACK_SIZE (CONFIG_BT_NIMBLE_TASK_STACK_SIZE) |
Damien George | da2b5fa | 2021-02-14 01:36:30 +1100 | [diff] [blame] | 76 | #define MICROPY_PY_BLUETOOTH_ENABLE_CENTRAL_MODE (1) |
Damien George | 5dbb822 | 2021-03-17 12:35:59 +1100 | [diff] [blame^] | 77 | #define MICROPY_PY_BLUETOOTH_ENABLE_PAIRING_BONDING (1) |
Damien George | da2b5fa | 2021-02-14 01:36:30 +1100 | [diff] [blame] | 78 | #define MICROPY_BLUETOOTH_NIMBLE (1) |
| 79 | #define MICROPY_BLUETOOTH_NIMBLE_BINDINGS_ONLY (1) |
| 80 | #endif |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 81 | #define MICROPY_PY_UTIMEQ (1) |
Damien George | 0501427 | 2018-06-12 13:42:43 +1000 | [diff] [blame] | 82 | #define MICROPY_PY_UHASHLIB_SHA1 (1) |
| 83 | #define MICROPY_PY_UHASHLIB_SHA256 (1) |
Damien George | 82bc483 | 2018-06-27 16:39:26 +1000 | [diff] [blame] | 84 | #define MICROPY_PY_UCRYPTOLIB (1) |
robert | b406289 | 2020-08-22 20:56:26 +0200 | [diff] [blame] | 85 | #define MICROPY_PY_URANDOM_SEED_INIT_FUNC (esp_random()) |
Damien George | 1c53d85 | 2022-03-03 19:09:01 +1100 | [diff] [blame] | 86 | #define MICROPY_PY_UOS_INCLUDEFILE "ports/esp32/moduos.c" |
Damien George | 98b05e3 | 2018-04-27 23:51:00 +1000 | [diff] [blame] | 87 | #define MICROPY_PY_OS_DUPTERM (1) |
Damien George | 1c53d85 | 2022-03-03 19:09:01 +1100 | [diff] [blame] | 88 | #define MICROPY_PY_UOS_DUPTERM_NOTIFY (1) |
Damien George | 818be10 | 2022-03-03 19:17:12 +1100 | [diff] [blame] | 89 | #define MICROPY_PY_UOS_UNAME (1) |
Damien George | 1c53d85 | 2022-03-03 19:09:01 +1100 | [diff] [blame] | 90 | #define MICROPY_PY_UOS_URANDOM (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 91 | #define MICROPY_PY_MACHINE (1) |
| 92 | #define MICROPY_PY_MACHINE_PIN_MAKE_NEW mp_pin_make_new |
Jim Mussared | 71f4faa | 2021-08-11 14:26:23 +1000 | [diff] [blame] | 93 | #define MICROPY_PY_MACHINE_BITSTREAM (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 94 | #define MICROPY_PY_MACHINE_PULSE (1) |
Damien George | af64c2d | 2021-06-24 12:37:50 +1000 | [diff] [blame] | 95 | #define MICROPY_PY_MACHINE_PWM (1) |
| 96 | #define MICROPY_PY_MACHINE_PWM_INIT (1) |
| 97 | #define MICROPY_PY_MACHINE_PWM_DUTY (1) |
IhorNehrutsa | b491967 | 2021-10-15 14:04:40 -0700 | [diff] [blame] | 98 | #define MICROPY_PY_MACHINE_PWM_DUTY_U16_NS (1) |
Damien George | af64c2d | 2021-06-24 12:37:50 +1000 | [diff] [blame] | 99 | #define MICROPY_PY_MACHINE_PWM_INCLUDEFILE "ports/esp32/machine_pwm.c" |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 100 | #define MICROPY_PY_MACHINE_I2C (1) |
Damien George | 6bda80d | 2022-06-01 11:58:30 +1000 | [diff] [blame] | 101 | #define MICROPY_PY_MACHINE_I2C_TRANSFER_WRITE1 (1) |
Damien George | 122d901 | 2021-09-02 12:37:00 +1000 | [diff] [blame] | 102 | #define MICROPY_PY_MACHINE_SOFTI2C (1) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 103 | #define MICROPY_PY_MACHINE_SPI (1) |
| 104 | #define MICROPY_PY_MACHINE_SPI_MSB (0) |
| 105 | #define MICROPY_PY_MACHINE_SPI_LSB (1) |
Damien George | afe0634 | 2021-09-02 12:39:28 +1000 | [diff] [blame] | 106 | #define MICROPY_PY_MACHINE_SOFTSPI (1) |
Damien George | 1f9243f | 2021-07-18 12:11:10 +1000 | [diff] [blame] | 107 | #ifndef MICROPY_PY_MACHINE_DAC |
| 108 | #define MICROPY_PY_MACHINE_DAC (1) |
| 109 | #endif |
Damien George | 0fc0cca | 2021-07-18 12:11:15 +1000 | [diff] [blame] | 110 | #ifndef MICROPY_PY_MACHINE_I2S |
| 111 | #define MICROPY_PY_MACHINE_I2S (1) |
| 112 | #endif |
Damien George | ea186de | 2021-09-22 00:35:46 +1000 | [diff] [blame] | 113 | #ifndef MICROPY_PY_NETWORK_WLAN |
| 114 | #define MICROPY_PY_NETWORK_WLAN (1) |
| 115 | #endif |
Damien George | 66a86a0 | 2021-02-18 21:24:34 +1100 | [diff] [blame] | 116 | #ifndef MICROPY_HW_ENABLE_SDCARD |
Nicko van Someren | 8e3af7d | 2019-05-04 19:00:35 -0600 | [diff] [blame] | 117 | #define MICROPY_HW_ENABLE_SDCARD (1) |
Damien George | 66a86a0 | 2021-02-18 21:24:34 +1100 | [diff] [blame] | 118 | #endif |
Damien George | 58ebeca | 2018-03-09 17:25:58 +1100 | [diff] [blame] | 119 | #define MICROPY_HW_SOFTSPI_MIN_DELAY (0) |
| 120 | #define MICROPY_HW_SOFTSPI_MAX_BAUDRATE (ets_get_cpu_frequency() * 1000000 / 200) // roughly |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 121 | #define MICROPY_PY_USSL (1) |
| 122 | #define MICROPY_SSL_MBEDTLS (1) |
Damien George | 1c52d3e | 2017-10-30 16:19:52 +1100 | [diff] [blame] | 123 | #define MICROPY_PY_USSL_FINALISER (1) |
Yonatan Goldschmidt | bc4f8b4 | 2019-02-10 22:35:18 +0200 | [diff] [blame] | 124 | #define MICROPY_PY_UWEBSOCKET (1) |
Damien George | c1d4352 | 2018-04-27 23:57:57 +1000 | [diff] [blame] | 125 | #define MICROPY_PY_WEBREPL (1) |
Damien George | ab9d47e | 2021-04-08 23:56:28 +1000 | [diff] [blame] | 126 | #define MICROPY_PY_BTREE (1) |
Damien George | d41f6dd | 2021-09-02 12:39:50 +1000 | [diff] [blame] | 127 | #define MICROPY_PY_ONEWIRE (1) |
Damien George | b96318a | 2022-01-06 18:25:29 +1100 | [diff] [blame] | 128 | #define MICROPY_PY_UPLATFORM (1) |
Damien George | c1d4352 | 2018-04-27 23:57:57 +1000 | [diff] [blame] | 129 | #define MICROPY_PY_USOCKET_EVENTS (MICROPY_PY_WEBREPL) |
Jim Mussared | 6a9bd1c | 2019-10-01 23:47:37 +1000 | [diff] [blame] | 130 | #define MICROPY_PY_BLUETOOTH_RANDOM_ADDR (1) |
Damien George | 3b6c911 | 2020-05-08 13:54:10 +1000 | [diff] [blame] | 131 | #define MICROPY_PY_BLUETOOTH_DEFAULT_GAP_NAME ("ESP32") |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 132 | |
| 133 | // fatfs configuration |
| 134 | #define MICROPY_FATFS_ENABLE_LFN (1) |
| 135 | #define MICROPY_FATFS_RPATH (2) |
| 136 | #define MICROPY_FATFS_MAX_SS (4096) |
Damien George | b5f33ac | 2019-02-25 23:46:17 +1100 | [diff] [blame] | 137 | #define MICROPY_FATFS_LFN_CODE_PAGE 437 /* 1=SFN/ANSI 437=LFN/U.S.(OEM) */ |
Damien George | f35aae3 | 2018-06-06 12:00:23 +1000 | [diff] [blame] | 138 | #define mp_type_fileio mp_type_vfs_fat_fileio |
| 139 | #define mp_type_textio mp_type_vfs_fat_textio |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 140 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 141 | #define MP_STATE_PORT MP_STATE_VM |
| 142 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 143 | // type definitions for the specific machine |
| 144 | |
Damien George | 69661f3 | 2020-02-27 15:36:53 +1100 | [diff] [blame] | 145 | #define MICROPY_MAKE_POINTER_CALLABLE(p) ((void *)((mp_uint_t)(p))) |
Damien George | 69661f3 | 2020-02-27 15:36:53 +1100 | [diff] [blame] | 146 | void *esp_native_code_commit(void *, size_t, void *); |
Damien George | b47e155 | 2019-10-06 23:29:40 +1100 | [diff] [blame] | 147 | #define MP_PLAT_COMMIT_EXEC(buf, len, reloc) esp_native_code_commit(buf, len, reloc) |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 148 | #define MP_SSIZE_MAX (0x7fffffff) |
| 149 | |
| 150 | // Note: these "critical nested" macros do not ensure cross-CPU exclusion, |
| 151 | // the only disable interrupts on the current CPU. To full manage exclusion |
| 152 | // one should use portENTER_CRITICAL/portEXIT_CRITICAL instead. |
| 153 | #include "freertos/FreeRTOS.h" |
| 154 | #define MICROPY_BEGIN_ATOMIC_SECTION() portENTER_CRITICAL_NESTED() |
| 155 | #define MICROPY_END_ATOMIC_SECTION(state) portEXIT_CRITICAL_NESTED(state) |
| 156 | |
Damien George | 999c8b9 | 2018-04-27 23:53:45 +1000 | [diff] [blame] | 157 | #if MICROPY_PY_USOCKET_EVENTS |
| 158 | #define MICROPY_PY_USOCKET_EVENTS_HANDLER extern void usocket_events_handler(void); usocket_events_handler(); |
| 159 | #else |
| 160 | #define MICROPY_PY_USOCKET_EVENTS_HANDLER |
| 161 | #endif |
| 162 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 163 | #if MICROPY_PY_THREAD |
| 164 | #define MICROPY_EVENT_POLL_HOOK \ |
| 165 | do { \ |
Damien George | 98a3911 | 2020-02-06 01:05:47 +1100 | [diff] [blame] | 166 | extern void mp_handle_pending(bool); \ |
| 167 | mp_handle_pending(true); \ |
Damien George | 999c8b9 | 2018-04-27 23:53:45 +1000 | [diff] [blame] | 168 | MICROPY_PY_USOCKET_EVENTS_HANDLER \ |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 169 | MP_THREAD_GIL_EXIT(); \ |
Daniƫl van de Giessen | 665f0e2 | 2022-02-23 17:28:32 +0100 | [diff] [blame] | 170 | ulTaskNotifyTake(pdFALSE, 1); \ |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 171 | MP_THREAD_GIL_ENTER(); \ |
| 172 | } while (0); |
| 173 | #else |
| 174 | #define MICROPY_EVENT_POLL_HOOK \ |
| 175 | do { \ |
Damien George | 98a3911 | 2020-02-06 01:05:47 +1100 | [diff] [blame] | 176 | extern void mp_handle_pending(bool); \ |
| 177 | mp_handle_pending(true); \ |
Damien George | 999c8b9 | 2018-04-27 23:53:45 +1000 | [diff] [blame] | 178 | MICROPY_PY_USOCKET_EVENTS_HANDLER \ |
Damien George | 69661f3 | 2020-02-27 15:36:53 +1100 | [diff] [blame] | 179 | asm ("waiti 0"); \ |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 180 | } while (0); |
| 181 | #endif |
| 182 | |
Damien George | f4641b2 | 2020-02-07 12:11:22 +1100 | [diff] [blame] | 183 | // Functions that should go in IRAM |
Damien George | 549448e | 2021-09-24 12:50:59 +1000 | [diff] [blame] | 184 | #define MICROPY_WRAP_MP_BINARY_OP(f) IRAM_ATTR f |
| 185 | #define MICROPY_WRAP_MP_EXECUTE_BYTECODE(f) IRAM_ATTR f |
| 186 | #define MICROPY_WRAP_MP_LOAD_GLOBAL(f) IRAM_ATTR f |
| 187 | #define MICROPY_WRAP_MP_LOAD_NAME(f) IRAM_ATTR f |
| 188 | #define MICROPY_WRAP_MP_MAP_LOOKUP(f) IRAM_ATTR f |
| 189 | #define MICROPY_WRAP_MP_OBJ_GET_TYPE(f) IRAM_ATTR f |
Damien George | 7cbf826 | 2021-04-28 10:52:19 +1000 | [diff] [blame] | 190 | #define MICROPY_WRAP_MP_SCHED_EXCEPTION(f) IRAM_ATTR f |
Damien George | e9e9c76 | 2021-04-28 10:57:34 +1000 | [diff] [blame] | 191 | #define MICROPY_WRAP_MP_SCHED_KEYBOARD_INTERRUPT(f) IRAM_ATTR f |
Damien George | f4641b2 | 2020-02-07 12:11:22 +1100 | [diff] [blame] | 192 | |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 193 | #define UINT_FMT "%u" |
| 194 | #define INT_FMT "%d" |
| 195 | |
| 196 | typedef int32_t mp_int_t; // must be pointer size |
| 197 | typedef uint32_t mp_uint_t; // must be pointer size |
| 198 | typedef long mp_off_t; |
| 199 | // ssize_t, off_t as required by POSIX-signatured functions in stream.h |
| 200 | #include <sys/types.h> |
| 201 | |
| 202 | // board specifics |
Damien George | bc08c88 | 2016-12-06 12:20:10 +1100 | [diff] [blame] | 203 | #define MICROPY_PY_SYS_PLATFORM "esp32" |
Damien George | 2ccf030 | 2019-07-10 15:38:48 +1000 | [diff] [blame] | 204 | |
Seon Rozenblum | 1904833 | 2021-11-12 11:23:49 +1100 | [diff] [blame] | 205 | // ESP32-S3 extended IO for 47 & 48 |
| 206 | #ifndef MICROPY_HW_ESP32S3_EXTENDED_IO |
| 207 | #define MICROPY_HW_ESP32S3_EXTENDED_IO (1) |
| 208 | #endif |
| 209 | |
Damien George | 2ccf030 | 2019-07-10 15:38:48 +1000 | [diff] [blame] | 210 | #ifndef MICROPY_HW_ENABLE_MDNS_QUERIES |
| 211 | #define MICROPY_HW_ENABLE_MDNS_QUERIES (1) |
| 212 | #endif |
| 213 | |
| 214 | #ifndef MICROPY_HW_ENABLE_MDNS_RESPONDER |
| 215 | #define MICROPY_HW_ENABLE_MDNS_RESPONDER (1) |
| 216 | #endif |
Damien George | f046b50 | 2021-09-22 00:00:26 +1000 | [diff] [blame] | 217 | |
| 218 | #ifndef MICROPY_BOARD_STARTUP |
| 219 | #define MICROPY_BOARD_STARTUP boardctrl_startup |
| 220 | #endif |
| 221 | |
| 222 | void boardctrl_startup(void); |