Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8766bc0

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 theyare ever needed in the future then their implementation can be taken fromeither stmhal (working macros in mpconfigport.h) or esp8266 (functions).
1 parentb456484 commit8766bc0

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-
#definemalloc gc_alloc
206-
#definefree gc_free
207-
#definerealloc 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
#defineMICROPY_BEGIN_ATOMIC_SECTION() disable_irq()
101101
#defineMICROPY_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-
#definemalloc gc_alloc
108-
#definefree gc_free
109-
#definerealloc gc_realloc
110-
111103
// We need to provide a declaration/definition of alloca()
112104
#include<alloca.h>
113105

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp