micropython/ports/nrf/modules/machine
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
..
adc.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
adc.h
i2c.c extmod/machine_i2c: Add init protocol method for generic I2C bindings. 2020-11-23 19:45:04 +11:00
i2c.h ports: Add SoftI2C and SoftSPI to machine module where appropriate. 2020-10-01 12:57:10 +10:00
modmachine.c ports: Consolidate inclusion of umachine module in built-ins. 2022-02-03 10:08:54 +11:00
modmachine.h
pin.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
pin.h
pwm.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
pwm.h
rtcounter.c nrf: Add support for time.ticks_xxx functions using RTC1. 2020-07-08 23:47:02 +10:00
rtcounter.h
spi.c nrf/modules: Replace master/slave with controller/peripheral in SPI. 2021-07-18 11:23:41 +10:00
spi.h
temp.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
temp.h
timer.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
timer.h
uart.c all: Update to point to files in new shared/ directory. 2021-07-12 17:08:10 +10:00
uart.h