circuitpython/ports/nrf/modules/machine
Jim Mussared 8a0ee5a5c0 py/objstr: Split mp_obj_str_from_vstr into bytes/str versions.
Previously the desired output type was specified.  Now make the type part
of the function name.  Because this function is used in a few places this
saves code size due to smaller call-site.

This makes `mp_obj_new_str_type_from_vstr` a private function of objstr.c
(which is almost the only place where the output type isn't a compile-time
constant).

This saves ~140 bytes on PYBV11.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-08-26 16:43:55 +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 nrf/adc: Allow for external use of new and value read function. 2018-07-18 17:12:26 +10:00
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 nrf/modmachine: Add machine.idle() function. 2022-07-08 12:37:59 +10:00
modmachine.h nrf/modmachine: Add machine.bootloader() and make it customisable. 2022-06-17 13:37:44 +10:00
pin.c nrf: Use MP_REGISTER_ROOT_POINTER(). 2022-07-18 13:50:34 +10:00
pin.h nrf: Remove port member from Pin object 2018-07-18 17:12:26 +10:00
pwm.c nrf: Update to work with nrfx v2.0.0, to match TinyUSB. 2020-05-15 15:06:02 +10:00
pwm.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
rtcounter.c nrf: Add support for time.ticks_xxx functions using RTC1. 2020-07-08 23:47:02 +10:00
rtcounter.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
spi.c py/objstr: Split mp_obj_str_from_vstr into bytes/str versions. 2022-08-26 16:43:55 +10:00
spi.h nrf/spi: Allow for external use of new and transfer function. 2018-07-18 17:12:26 +10:00
temp.c all: Use mp_obj_malloc everywhere it's applicable. 2022-05-03 22:28:14 +10:00
temp.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
timer.c all: Use MP_ERROR_TEXT for all error messages. 2020-04-05 15:02:06 +10:00
timer.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
uart.c nrf/drivers/usb: Probe for interrupt char in USB CDC task. 2022-07-17 00:11:14 +10:00
uart.h nrf: Move pyb module to boards module 2018-07-18 17:12:26 +10:00