<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/pyexec.c, branch v1.3.8</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.8</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.8'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2014-12-20T22:58:06+00:00</updated>
<entry>
<title>stmhal: gccollect.h is superfluous in many places.</title>
<updated>2014-12-20T22:58:06+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-20T22:56:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4b60b45bfc363a222c02feaca56011801fc996dd'/>
<id>urn:sha1:4b60b45bfc363a222c02feaca56011801fc996dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Use gc_dump_info() function instead of adhoc code.</title>
<updated>2014-12-20T22:26:10+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-20T22:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6aaccc484c0f07354638a3581ade3d264061645a'/>
<id>urn:sha1:6aaccc484c0f07354638a3581ade3d264061645a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Include MICROPY_HAL_H only if defined.</title>
<updated>2014-12-20T18:47:35+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-20T18:45:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bf19586c53d1473255f87ea651bd40a6435d89d3'/>
<id>urn:sha1:bf19586c53d1473255f87ea651bd40a6435d89d3</id>
<content type='text'>
Helps other ports.
</content>
</entry>
<entry>
<title>modsys: Add sys.print_exception(exc, file=sys.stdout) function.</title>
<updated>2014-12-08T20:25:49+00:00</updated>
<author>
<name>Paul Sokolovsky</name>
<email>pfalcon@users.sourceforge.net</email>
</author>
<published>2014-12-06T12:29:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=46c3ab20049af16e97863e90e5761fae329f872a'/>
<id>urn:sha1:46c3ab20049af16e97863e90e5761fae329f872a</id>
<content type='text'>
The function is modeled after traceback.print_exception(), but unbloated,
and put into existing module to save overhead on adding another module.
Compliant traceback.print_exception() is intended to be implemented in
micropython-lib in terms of sys.print_exception().

This change required refactoring mp_obj_print_exception() to take pfenv_t
interface arguments.

Addresses #751.
</content>
</entry>
<entry>
<title>py: Optimise lexer by exposing lexer type.</title>
<updated>2014-12-05T19:35:18+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-05T19:35:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a4c52c5a3d19b5527023fedfaae96cb717d03802'/>
<id>urn:sha1:a4c52c5a3d19b5527023fedfaae96cb717d03802</id>
<content type='text'>
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer
functions (like checking current token kind) are now inlined.

This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460
bytes on bare-arm.  It also saves a tiny bit of RAM since mp_lexer_t
is a bit smaller.  Also will run a bit more efficiently.
</content>
</entry>
<entry>
<title>stmhal: Reduce coupling between USB driver and readline.</title>
<updated>2014-11-27T16:58:31+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-27T16:58:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5cbc9e0db0f01e1e643e8c091a536b54372df5bd'/>
<id>urn:sha1:5cbc9e0db0f01e1e643e8c091a536b54372df5bd</id>
<content type='text'>
This makes it easier to re-use readline.c and pyexec.c from stmhal in
other ports.
</content>
</entry>
<entry>
<title>stmhal: Improve REPL control codes; improve pyboard.py script.</title>
<updated>2014-10-26T15:39:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-26T15:39:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=bc1488a05f509cd5be8bfab9574babfcb993806f'/>
<id>urn:sha1:bc1488a05f509cd5be8bfab9574babfcb993806f</id>
<content type='text'>
Improvements are:

2 ctrl-C's are now needed to truly kill running script on pyboard, so
make CDC interface allow multiple ctrl-C's through at once (ie sending
b'\x03\x03' to pyboard now counts as 2 ctrl-C's).

ctrl-C in friendly-repl can now stop multi-line input.

In raw-repl mode, use ctrl-D to indicate end of running script, and also
end of any error message.  Thus, output of raw-repl is always at least 2
ctrl-D's and it's much easier to parse.

pyboard.py is now a bit faster, handles exceptions from pyboard better
(prints them and exits with exit code 1), prints out the pyboard output
while the script is running (instead of waiting till the end), and
allows to follow the output of a previous script when run with no
arguments.
</content>
</entry>
<entry>
<title>stmhal: Don't return SystemExit value from parse_compile_execute.</title>
<updated>2014-10-22T18:14:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-22T18:13:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3be6984b8f435d108a04102d21346bf498b32f67'/>
<id>urn:sha1:3be6984b8f435d108a04102d21346bf498b32f67</id>
<content type='text'>
There is no need, since we don't (currently) use the value.
</content>
</entry>
<entry>
<title>Add pyb.hard_reset, and make sys.exit() or raise SystemExit do a soft reset.</title>
<updated>2014-10-22T18:14:20+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2014-10-22T06:04:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=8d62bbd46aa178abc6e029b0ba79d915f7f988c2'/>
<id>urn:sha1:8d62bbd46aa178abc6e029b0ba79d915f7f988c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Use mp_uint_t where appropriate.</title>
<updated>2014-10-05T20:51:54+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-10-05T20:51:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d03c6816083c8ce8a35d278ede48c4089012b055'/>
<id>urn:sha1:d03c6816083c8ce8a35d278ede48c4089012b055</id>
<content type='text'>
Found these by compiling stmhal with mp_uint_t of type uint32_t instead
of unsigned int.  This actually makes a difference to the code, but just
a curiosity.
</content>
</entry>
</feed>
