micropython/ports/nrf/boards/microbit/modules
Jim Mussared 0e7bfc88c6 all: Use mp_obj_malloc everywhere it's applicable.
This replaces occurences of

    foo_t *foo = m_new_obj(foo_t);
    foo->base.type = &foo_type;

with

    foo_t *foo = mp_obj_malloc(foo_t, &foo_type);

Excludes any places where base is a sub-field or when new0/memset is used.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-05-03 22:28:14 +10:00
..
AUTHORS nrf/boards/microbit: Add copy of microbit display and image files. 2018-07-18 17:12:25 +10:00
boardmodules.h nrf: Change board module header from board_modules.h to boardmodules.h. 2018-07-18 17:12:25 +10:00
boardmodules.mk nrf/boards/microbit: Add framework updates to build micro:bit modules. 2018-07-18 17:12:25 +10:00
iters.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
iters.h nrf/boards/microbit: Add copy of microbit display and image files. 2018-07-18 17:12:25 +10:00
LICENSE nrf/boards/microbit: Add copy of microbit display and image files. 2018-07-18 17:12:25 +10:00
microbitconstimage.c nrf/boards/microbit: Update board modules from C++ to C-code. 2018-07-18 17:12:25 +10:00
microbitconstimage.h nrf: Quick-fix on const objects with open array dimension in objtuples. 2018-07-18 17:12:26 +10:00
microbitconstimagetuples.c nrf: Quick-fix on const objects with open array dimension in objtuples. 2018-07-18 17:12:26 +10:00
microbitdisplay.c py/mpstate: Make exceptions thread-local. 2021-06-19 09:43:44 +10:00
microbitdisplay.h nrf/boards/microbit: Update board modules from C++ to C-code. 2018-07-18 17:12:25 +10:00
microbitfont.h nrf/boards/microbit: Update board modules from C++ to C-code. 2018-07-18 17:12:25 +10:00
microbitimage.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
microbitimage.h nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +10:00
modmicrobit.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
modmicrobit.h nrf/boards/microbit: Add modmicrobit.h to expose module init function. 2018-07-18 17:12:25 +10:00