Damien George
c92c7a69fd
stmhal: Exclude code for those timers that don't exist in the hardware.
2015-04-18 21:40:58 +01:00
Damien George
7d6595fd18
stmhal: Make LCD initialiser use board pin names instead of cpu names.
2015-04-18 21:40:58 +01:00
Damien George
50ea86fe8b
stmhal: For pins, define macros mapping board names to cpu names.
2015-04-18 21:40:58 +01:00
Damien George
2e5704d101
stmhal: Make a HW config option for LED4 being controlled by PWM.
2015-04-18 21:40:58 +01:00
Damien George
8bdbc20e74
stmhal: Make HSE PLL parameters configurable per board.
2015-04-18 21:40:58 +01:00
Daniel Campora
23008db6e1
README.md: Add the CC3200 port to the list of additional components.
2015-04-18 19:49:00 +02:00
Henrik
e3cd154317
stmhal: Add support for sending and receiving CAN RTR messages.
2015-04-18 14:53:00 +01:00
Damien George
259eaab9a9
cc3200: Clean up and reduce use/include of std.h.
2015-04-18 14:29:28 +01:00
Damien George
2764a8ee8d
stmhal: Remove std.h. It's not needed anymore.
2015-04-18 14:28:39 +01:00
Damien George
f53a8e712f
lib/libc/string0.c: Remove include of std.h, replace with string.h.
...
Much more portable this way.
2015-04-18 14:27:55 +01:00
Damien George
1c9a499135
py/vstr.c: Allow vstr_printf to print correctly to a fixed buffer.
...
This patch allows vstr_printf to use all the available space of a fixed
vstr buffer. vstr_printf is a good alternative to snprintf.
2015-04-18 14:23:13 +01:00
Daniel Campora
c1a77a0c9f
cc3200: Use new %q format to print qstr's where appropiate.
2015-04-17 10:15:55 +02:00
Daniel Campora
2cd247e819
cc3200: Clean up bootloader makefile and remove superflous assert.
2015-04-17 09:55:24 +02:00
Damien George
dcbf62b43d
acks: Add 1 name to the ACKNOWLEDGEMENTS file.
2015-04-17 00:15:29 +01:00
Damien George
7d5e34287c
stmhal: Allow sending CAN messages with timeout=0.
...
Thanks to Henrik Sölver for this patch.
2015-04-16 23:52:43 +01:00
blmorris
4c45921349
stmhal: Use new %q format to print qstr's in a few more places.
...
Saves 68 bytes.
2015-04-16 22:30:00 +01:00
Damien George
feff00e1a5
Add .gitattributes file to force text line endings to LF.
...
Some files are excluded, otherwise a whole lot of files need converting.
2015-04-16 22:23:56 +01:00
Damien George
a102e01ce1
logo: Change line endings in FONT-LICENSE.txt from CRLF to LF.
2015-04-16 22:12:19 +01:00
Damien George
90aa7595b4
tests: Convert line endings in fun_name.py from CRLF to LF.
2015-04-16 22:09:17 +01:00
Damien George
2941d5c714
qemu-arm: Get compiling again with recent changes to print framework.
2015-04-16 21:44:52 +01:00
Damien George
a86d40ccd4
cc3200: Get bootloader compiling with latest overhaul of printf code.
2015-04-16 14:30:17 +00:00
Damien George
044c473de2
py: Add %q format support to mp_[v]printf, and use it.
2015-04-16 14:30:16 +00:00
Damien George
e72cda99fd
py: Convert occurrences of non-debug printf to mp_printf.
2015-04-16 14:30:16 +00:00
Damien George
5ae5ec986e
py: Make mp_sys_stdout_print object, wrapping sys.stdout for mp_print*.
...
So now all printing should go via either mp_plat_print or
mp_sys_stdout_print.
2015-04-16 14:30:16 +00:00
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