summaryrefslogtreecommitdiffstatshomepage
path: root/stm/gccollect.h
diff options
context:
space:
mode:
Diffstat (limited to 'stm/gccollect.h')
-rw-r--r--stm/gccollect.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/stm/gccollect.h b/stm/gccollect.h
new file mode 100644
index 0000000000..6467ec7d21
--- /dev/null
+++ b/stm/gccollect.h
@@ -0,0 +1,9 @@
+#define HEAP_END (0x2001c000) // tunable
+#define RAM_END (0x20020000) // fixed for chip
+
+extern uint32_t _ram_start;
+extern uint32_t _heap_start;
+
+void gc_collect(void);
+
+MP_DECLARE_CONST_FUN_OBJ(pyb_gc_obj);