We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9fced9 commit d041942Copy full SHA for d041942
ports/rp2/main.c
@@ -82,6 +82,10 @@ int main(int argc, char **argv) {
82
SCB->SCR |= SCB_SCR_SEVONPEND_Msk;
83
#endif
84
85
+ #if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
86
+ size_t psram_size = psram_init(MICROPY_HW_PSRAM_CS_PIN);
87
+ #endif
88
+
89
pendsv_init();
90
soft_timer_init();
91
@@ -123,7 +127,6 @@ int main(int argc, char **argv) {
123
127
mp_cstack_init_with_top(&__StackTop, &__StackTop - &__StackBottom);
124
128
125
129
#if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
126
- size_t psram_size = psram_init(MICROPY_HW_PSRAM_CS_PIN);
130
if (psram_size) {
131
#if MICROPY_GC_SPLIT_HEAP
132
gc_init(&__GcHeapStart, &__GcHeapEnd);
0 commit comments