Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
afd4909a
Commit
afd4909a
authored
Jul 15, 2016
by
Matt Brejza
Committed by
Paul Sokolovsky
Jul 30, 2016
Browse files
stmhal: fixing malloc when used with external libraries
parent
37b143ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
stmhal/mpconfigport.h
View file @
afd4909a
...
...
@@ -235,9 +235,9 @@ static inline mp_uint_t disable_irq(void) {
// garbage-collected heap. For completeness, emulate C heap via
// GC heap. Note that MicroPython core never uses malloc() and friends,
// so these defines are mostly to help extension module writers.
#define malloc
gc_
alloc
#define free
gc
_free
#define realloc
gc
_realloc
#define malloc
(n) m_m
alloc
(n)
#define free
(p) m
_free
(p)
#define realloc
(p, n) m
_realloc
(p, n)
// see stm32f4XX_hal_conf.h USE_USB_FS & USE_USB_HS
// at the moment only USB_FS is supported
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment