micropython/ports/nrf/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
..
ble nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +10:00
board all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
machine all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
music py/mpstate: Make exceptions thread-local. 2021-06-19 09:43:44 +10:00
nrf all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
scripts nrf/modules/scripts: Add file system formatting script. 2021-08-08 23:17:55 +10:00
ubluepy all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
uos all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
utime nrf: Add support for time.ticks_xxx functions using RTC1. 2020-07-08 23:47:02 +10:00
manifest.py nrf/modules: Include uasyncio in default board manifest. 2022-03-30 15:37:49 +11:00