<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib/utils, branch v1.8.7</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.7</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.8.7'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-12-15T02:35:54+00:00</updated>
<entry>
<title>lib/utils/interrupt_char: Use core-provided mp_kbd_exception if enabled.</title>
<updated>2016-12-15T02:35:54+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-15T02:35:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d89cafd5c30be57db99cbf10993bca00d9f523fb'/>
<id>urn:sha1:d89cafd5c30be57db99cbf10993bca00d9f523fb</id>
<content type='text'>
Ultimately all ports that use lib/utils/interrupt_char would enable
MICROPY_KBD_EXCEPTION, so this is an interim solution.
</content>
</entry>
<entry>
<title>zephyr: Fix mp_hal_set_interrupt_char() declaration to be compatible.</title>
<updated>2016-10-26T14:53:28+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-26T14:53:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3cdccb9b1429bc3afd04ec3f9171b373fe939375'/>
<id>urn:sha1:3cdccb9b1429bc3afd04ec3f9171b373fe939375</id>
<content type='text'>
With other ports. Other ports declare it in mphalport.h, it can be
inline or macro.
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Fix compilation warning of type vs format mismatch.</title>
<updated>2016-10-26T10:45:03+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-26T10:45:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6832cbd69d04db1703b8b17939d8cd894aea4c68'/>
<id>urn:sha1:6832cbd69d04db1703b8b17939d8cd894aea4c68</id>
<content type='text'>
This happens with some compilers on some architectures, which don't define
size_t as unsigned int. MicroPython's printf() dooesn't support obscure
format specifiers for size_t, so the obvious choice is to explicitly cast
to unsigned, to match %u used in printf().
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Add mp_hal_set_interrupt_char() prototype.</title>
<updated>2016-10-26T10:42:27+00:00</updated>
<author>
<name>Vincenzo Frascino</name>
<email>vincenzo.frascino@linaro.org</email>
</author>
<published>2016-10-26T09:33:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c38ea32810f2b8b55c1585a3022902c359f84d6e'/>
<id>urn:sha1:c38ea32810f2b8b55c1585a3022902c359f84d6e</id>
<content type='text'>
This patch removes a compilation warning in pyexec.

Signed-off-by: Vincenzo Frascino &lt;vincenzo.frascino@linaro.org&gt;
</content>
</entry>
<entry>
<title>lib/utils/pyhelp.c: Use mp_printf() instead of printf()</title>
<updated>2016-10-21T07:30:58+00:00</updated>
<author>
<name>Erik Moqvist</name>
<email>erik.moqvist@gmail.com</email>
</author>
<published>2016-10-16T14:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f64e806f50606902323c62cf7b479922724022b6'/>
<id>urn:sha1:f64e806f50606902323c62cf7b479922724022b6</id>
<content type='text'>
This patch introduces MP_PYTHON_PRINTER for general use.
</content>
</entry>
<entry>
<title>py: Be more specific with MP_DECLARE_CONST_FUN_OBJ macros.</title>
<updated>2016-10-21T05:26:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-18T00:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2'/>
<id>urn:sha1:4ebdb1f2b217410cdc1cee0e0c0da8fceb7627f2</id>
<content type='text'>
In order to have more fine-grained control over how builtin functions are
constructed, the MP_DECLARE_CONST_FUN_OBJ macros are made more specific,
with suffix of _0, _1, _2, _3, _VAR, _VAR_BETEEN or _KW.  These names now
match the MP_DEFINE_CONST_FUN_OBJ macros.
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Allow behaviour of SystemExit to be configurable.</title>
<updated>2016-10-17T02:14:59+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-17T02:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ad3724e0bc87305f9280f65226066a199042d736'/>
<id>urn:sha1:ad3724e0bc87305f9280f65226066a199042d736</id>
<content type='text'>
Setting the pyexec_system_exit variable to PYEXEC_FORCED_EXT allows
SystemExit exceptions to terminate the pyexec functions.
</content>
</entry>
<entry>
<title>py/vstr: Combine vstr_new_size with vstr_new since they are rarely used.</title>
<updated>2016-10-14T05:46:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-10-14T05:46:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=824f5c5a32d740acad50d23b7ab1d69660dcf3ad'/>
<id>urn:sha1:824f5c5a32d740acad50d23b7ab1d69660dcf3ad</id>
<content type='text'>
Now there is just one function to allocate a new vstr, namely vstr_new
(in addition to vstr_init etc).  The caller of this function should know
what initial size to allocate for the buffer, or at least have some policy
or config option, instead of leaving it to a default (as it was before).
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Don't treat SystemExit as "forced exit".</title>
<updated>2016-10-12T15:00:32+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-10-12T15:00:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4021b1e1b86a86af9e43c393c447110d36ebb36d'/>
<id>urn:sha1:4021b1e1b86a86af9e43c393c447110d36ebb36d</id>
<content type='text'>
"Forced exit" is treated as soft-reboot (Ctrl+D). But expected effect of
calling sys.exit() is termination of the current script, not any further
and more serious actions like mentioned soft reboot.
</content>
</entry>
<entry>
<title>lib/interrupt_char: Factor out typical Ctrl+C handling from esp8266 port.</title>
<updated>2016-09-29T17:15:38+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2016-09-29T17:13:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6ab2c5e6cc6359c3419a9d8ee61b4e586864d048'/>
<id>urn:sha1:6ab2c5e6cc6359c3419a9d8ee61b4e586864d048</id>
<content type='text'>
Utility functions for keyboard interrupt handling, to be reused across
(baremetal) ports.
</content>
</entry>
</feed>
