summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/gccollect.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/gccollect.h')
-rw-r--r--stmhal/gccollect.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/stmhal/gccollect.h b/stmhal/gccollect.h
new file mode 100644
index 0000000000..9aa0a44413
--- /dev/null
+++ b/stmhal/gccollect.h
@@ -0,0 +1,17 @@
+// variables defining memory layout
+// (these probably belong somewhere else...)
+extern uint32_t _etext;
+extern uint32_t _sidata;
+extern uint32_t _ram_start;
+extern uint32_t _sdata;
+extern uint32_t _edata;
+extern uint32_t _sbss;
+extern uint32_t _ebss;
+extern uint32_t _heap_start;
+extern uint32_t _heap_end;
+extern uint32_t _estack;
+extern uint32_t _ram_end;
+
+void gc_collect(void);
+
+MP_DECLARE_CONST_FUN_OBJ(pyb_gc_obj);