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 37b143c commit afd4909Copy full SHA for afd4909
stmhal/mpconfigport.h
@@ -235,9 +235,9 @@ static inline mp_uint_t disable_irq(void) {
235
// garbage-collected heap. For completeness, emulate C heap via
236
// GC heap. Note that MicroPython core never uses malloc() and friends,
237
// so these defines are mostly to help extension module writers.
238
-#define malloc gc_alloc
239
-#define free gc_free
240
-#define realloc gc_realloc
+#define malloc(n) m_malloc(n)
+#define free(p) m_free(p)
+#define realloc(p, n) m_realloc(p, n)
241
242
// see stm32f4XX_hal_conf.h USE_USB_FS & USE_USB_HS
243
// at the moment only USB_FS is supported
0 commit comments