Jim Mussared
def76fe4d9
all: Use MP_ERROR_TEXT for all error messages.
2020-04-05 15:02:06 +10:00
Damien George
69661f3343
all: Reformat C and Python source code with tools/codeformat.py.
...
This is run with uncrustify 0.70.1, and black 19.10b0.
2020-02-28 10:33:03 +11:00
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
Damien George
96ace8082e
esp8266/machine_uart: Allow remapping UART TX/RX pins from 1/3 to 15/13.
...
Via the standard tx/rx arguments: UART(0, 115200, tx=Pin(15), rx=Pin(13)).
Resolves issue #4718 .
2019-08-21 21:16:40 +10:00
Damien George
52bec93755
esp8266/machine_uart: Add rxbuf keyword arg to UART constructor/init.
...
As per the machine.UART documentation, this is used to set the length of
the UART RX buffer.
2018-12-05 23:31:24 +11:00
Damien George
01dd7804b8
ports: Make new ports/ sub-directory and move all ports there.
...
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
2017-09-06 13:40:51 +10:00