8000 cc3200, teensy: Remove broken malloc/free/realloc macro helpers. · godlygeek/circuitpython@8766bc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8766bc0

Browse files
committed
cc3200, teensy: Remove broken malloc/free/realloc macro helpers.
These macros are broken and are anyway unused on these two ports. If they are ever needed in the future then their implementation can be taken from either stmhal (working macros in mpconfigport.h) or esp8266 (functions).
1 parent b456484 commit 8766bc0

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

cc3200/mpconfigport.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,6 @@ typedef long mp_off_t;
198198
// disabling/enabling and sleep mode enter/exit
199199
#include "cc3200_asm.h"
200200

201-
// There is no classical C heap in bare-metal ports, only Python
202-
// garbage-collected heap. For completeness, emulate C heap via
203-
// GC heap. Note that MicroPython core never uses malloc() and friends,
204-
// so these defines are mostly to help extension module writers.
205-
#define malloc gc_alloc
206-
#define free gc_free
207-
#define realloc gc_realloc
208-
209201
// We need to provide a declaration/definition of alloca()
210202
#include <alloca.h>
211203

teensy/mpconfigport.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,6 @@ __attribute__(( always_inline )) static inline mp_uint_t disable_irq(void) {
100100
#define MICROPY_BEGIN_ATOMIC_SECTION() disable_irq()
101101
#define MICROPY_END_ATOMIC_SECTION(state) enable_irq(state)
102102

103-
// There is no classical C heap in bare-metal ports, only Python
104-
// garbage-collected heap. For completeness, emulate C heap via
105-
// GC heap. Note that MicroPython core never uses malloc() and friends,
106-
// so these defines are mostly to help extension module writers.
107-
#define malloc gc_alloc
108-
#define free gc_free
109-
#define realloc gc_realloc
110-
111103
// We need to provide a declaration/definition of alloca()
112104
#include <alloca.h>
113105

0 commit comments

Comments
 (0)
0