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 e328d4c commit 1585553Copy full SHA for 1585553
ports/rp2/main.c
@@ -86,6 +86,10 @@ int main(int argc, char **argv) {
86
SCB->SCR |= SCB_SCR_SEVONPEND_Msk;
87
#endif
88
89
+ #if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
90
+ size_t psram_size = psram_init(MICROPY_HW_PSRAM_CS_PIN);
91
+ #endif
92
+
93
pendsv_init();
94
soft_timer_init();
95
@@ -127,7 +131,6 @@ int main(int argc, char **argv) {
127
131
mp_cstack_init_with_top(&__StackTop, &__StackTop - &__StackBottom);
128
132
129
133
#if defined(MICROPY_HW_PSRAM_CS_PIN) && MICROPY_HW_ENABLE_PSRAM
130
- size_t psram_size = psram_init(MICROPY_HW_PSRAM_CS_PIN);
134
if (psram_size) {
135
#if MICROPY_GC_SPLIT_HEAP
136
gc_init(&__GcHeapStart, &__GcHeapEnd);
0 commit comments