Tweak declaration for boards with TCM

This commit is contained in:
Scott Shawcroft 2020-07-20 18:16:20 -07:00
parent 1160635608
commit 389c81341d
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA

4
main.c
View File

@ -98,7 +98,7 @@ void do_str(const char *src, mp_parse_input_kind_t input_kind) {
}
#if MICROPY_ENABLE_PYSTACK
static size_t PLACE_IN_DTCM_BSS(_pystack)[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)];
static size_t PLACE_IN_DTCM_BSS(_pystack[CIRCUITPY_PYSTACK_SIZE / sizeof(size_t)]);
#endif
void start_mp(supervisor_allocation* heap) {
@ -130,7 +130,7 @@ void start_mp(supervisor_allocation* heap) {
readline_init0();
#if MICROPY_ENABLE_PYSTACK
mp_pystack_init(_pystack, _pystack + sizeof(_pystack));
mp_pystack_init(_pystack, _pystack + (sizeof(_pystack) / sizeof(size_t)));
#endif
#if MICROPY_ENABLE_GC