summaryrefslogtreecommitdiffstatshomepage
path: root/stm/malloc0.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-05-21 20:14:27 +0100
committerDamien George <damien.p.george@gmail.com>2014-05-21 20:14:27 +0100
commitaa7cf6f72f4e8a553f892629bb3338ab8c982d57 (patch)
treeb16167eecc2c5e8e5f84bd710308366a166c55e8 /stm/malloc0.c
parent63436ce22ee20f56b0083f846261c0b77af9961b (diff)
downloadmicropython-aa7cf6f72f4e8a553f892629bb3338ab8c982d57.tar.gz
micropython-aa7cf6f72f4e8a553f892629bb3338ab8c982d57.zip
stm: Remove long-obsolete stm/ port.
Diffstat (limited to 'stm/malloc0.c')
-rw-r--r--stm/malloc0.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/stm/malloc0.c b/stm/malloc0.c
deleted file mode 100644
index 510fa0d740..0000000000
--- a/stm/malloc0.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <stdio.h>
-#include <stdint.h>
-#include "misc.h"
-#include "mpconfig.h"
-#include "gc.h"
-
-#if 0
-static uint32_t mem = 0;
-
-void *malloc(size_t n) {
- if (mem == 0) {
- extern uint32_t _heap_start;
- mem = (uint32_t)&_heap_start; // need to use big ram block so we can execute code from it (is it true that we can't execute from CCM?)
- }
- void *ptr = (void*)mem;
- mem = (mem + n + 3) & (~3);
- if (mem > 0x20000000 + 0x18000) {
- void __fatal_error(const char*);
- __fatal_error("out of memory");
- }
- return ptr;
-}
-
-void free(void *ptr) {
-}
-
-void *realloc(void *ptr, size_t n) {
- return malloc(n);
-}
-
-#endif
-
-void __assert_func(void) {
- printf("\nASSERT FAIL!");
- for (;;) {
- }
-}