micropython/cc3200/mods
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism.
Previous to this patch the printing mechanism was a bit of a tangled
mess.  This patch attempts to consolidate printing into one interface.

All (non-debug) printing now uses the mp_print* family of functions,
mainly mp_printf.  All these functions take an mp_print_t structure as
their first argument, and this structure defines the printing backend
through the "print_strn" function of said structure.

Printing from the uPy core can reach the platform-defined print code via
two paths: either through mp_sys_stdout_obj (defined pert port) in
conjunction with mp_stream_write; or through the mp_plat_print structure
which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
on the platform.  The former is only used when MICROPY_PY_IO is defined.

With this new scheme printing is generally more efficient (less layers
to go through, less arguments to pass), and, given an mp_print_t*
structure, one can call mp_print_str for efficiency instead of
mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
Thumb2 archs.
2015-04-16 14:30:16 +00:00
..
modnetwork.c cc3200: Add WLAN.config_ip(). 2015-04-13 00:02:56 +02:00
modnetwork.h cc3200: Add WLAN.config_ip(). 2015-04-13 00:02:56 +02:00
modpyb.c cc3200: Add specific version file for the CC3200 port. 2015-03-31 14:34:09 +02:00
moduos.c cc3200: Enable long filename support in FatFS. 2015-04-11 13:35:05 +02:00
moduos.h cc3200: Remove duplicated code from moduos. 2015-03-31 14:34:07 +02:00
modusocket.c cc3200: Add IPPROTO_SEC to be able to create secure sockets. 2015-04-14 01:57:27 +02:00
modutime.c cc3200: Add explicit py/ path-prefix for py includes. 2015-02-21 18:58:43 +00:00
modutime.h cc3200: Remove duplicated code from moduos. 2015-03-31 14:34:07 +02:00
modwlan.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
modwlan.h cc3200: Add WLAN.config_ip(). 2015-04-13 00:02:56 +02:00
pybadc.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
pybadc.h cc3200: Add ADC module. 2015-02-20 16:40:59 +01:00
pybi2c.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
pybi2c.h cc3200: Register ADC and I2C with the sleep module. 2015-03-11 22:09:52 +01:00
pybpin.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
pybpin.h cc3200: Remove duplicated code from moduos. 2015-03-31 14:34:07 +02:00
pybrtc.c cc3200: Add callback support to the UART for RX interrupts. 2015-03-26 10:28:43 +01:00
pybrtc.h cc3200: Rewrite the PRCM RTC functionality methods. 2015-03-14 10:08:47 +01:00
pybsd.c cc3200: Enable long filename support in FatFS. 2015-04-11 13:35:05 +02:00
pybsd.h cc3200: Fixes and improvements to the SD card driver. 2015-03-18 21:55:02 +01:00
pybsleep.c cc3200: Minor refactorings on modwlan and pybsleep. 2015-03-26 14:27:21 +01:00
pybsleep.h cc3200: Keep WLAN enabled during the soft reset. 2015-03-25 15:22:16 +01:00
pybspi.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
pybspi.h cc3200: Add SPI module. 2015-03-21 11:26:47 +01:00
pybuart.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
pybuart.h cc3200: Add callback support to the UART for RX interrupts. 2015-03-26 10:28:43 +01:00
pybwdt.c cc3200: Add power management framework. Add mpcallback class. 2015-03-11 17:00:33 +01:00
pybwdt.h cc3200: Make WDT and HeartBeat constant objects on their own right. 2015-03-11 16:54:05 +01:00