circuitpython/ports/nrf/modules/machine
Damien George ad7213d3c3 py: Add mp_raise_msg_varg helper and use it where appropriate.
This commit adds mp_raise_msg_varg(type, fmt, ...) as a helper for
nlr_raise(mp_obj_new_exception_msg_varg(type, fmt, ...)).  It makes the
C-level API for raising exceptions more consistent, and reduces code size
on most ports:

   bare-arm:   +28 +0.042%
minimal x86:  +100 +0.067%
   unix x64:   -56 -0.011%
unix nanbox:  -300 -0.068%
      stm32:  -204 -0.054% PYBV10
     cc3200:    +0 +0.000%
    esp8266:   -64 -0.010% GENERIC
      esp32:  -104 -0.007% GENERIC
        nrf:  -136 -0.094% pca10040
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
2020-02-13 11:52:40 +11:00
..
adc.c nrf/machine/adc: Fix mapping of ADC channel to pin. 2019-09-05 22:13:04 +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 nrf/i2c: Add support for TWIM (EasyDMA). 2019-10-02 20:42:06 +02:00
i2c.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
modmachine.c py: Add mp_raise_type helper macro and use it where appropriate. 2020-02-13 11:03:37 +11:00
modmachine.h nrf/modmachine: Rename machine.sleep to machine.lightsleep. 2019-01-30 14:15:38 +11:00
pin.c py: Add mp_raise_msg_varg helper and use it where appropriate. 2020-02-13 11:52:40 +11:00
pin.h nrf: Remove port member from Pin object 2018-07-18 17:12:26 +10:00
pwm.c nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +10:00
pwm.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
rtcounter.c ports: Convert legacy uppercase macro names to lowercase. 2019-02-12 14:54:51 +11:00
rtcounter.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
spi.c nrf: Clean up source by removing tabs, trailing spaces, non-ASCII chars. 2019-08-28 13:34:45 +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 nrf/temp: Move module configuration guard. 2019-10-02 21:15:48 +02:00
temp.h nrf: Add new port to Nordic nRF5x MCUs. 2018-07-18 17:12:25 +10:00
timer.c ports: Convert legacy uppercase macro names to lowercase. 2019-02-12 14:54:51 +11:00
timer.h nrf: Replace custom-HAL with nrfx-HAL 2018-07-18 17:12:26 +10:00
uart.c nrf/uart: Add support for UARTE (EasyDMA). 2019-10-02 21:20:56 +02:00
uart.h nrf: Move pyb module to boards module 2018-07-18 17:12:26 +10:00