<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/lib/utils, branch v1.9.2</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.2</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.9.2'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-07-31T08:35:40+00:00</updated>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>all: Unify header guard usage.</title>
<updated>2017-07-18T01:57:39+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-29T21:14:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=299bc625864b9e624ed599c94a5f95870516139a'/>
<id>urn:sha1:299bc625864b9e624ed599c94a5f95870516139a</id>
<content type='text'>
The code conventions suggest using header guards, but do not define how
those should look like and instead point to existing files. However, not
all existing files follow the same scheme, sometimes omitting header guards
altogether, sometimes using non-standard names, making it easy to
accidentally pick a "wrong" example.

This commit ensures that all header files of the MicroPython project (that
were not simply copied from somewhere else) follow the same pattern, that
was already present in the majority of files, especially in the py folder.

The rules are as follows.

Naming convention:
* start with the words MICROPY_INCLUDED
* contain the full path to the file
* replace special characters with _

In addition, there are no empty lines before #ifndef, between #ifndef and
one empty line before #endif. #endif is followed by a comment containing
the name of the guard macro.

py/grammar.h cannot use header guards by design, since it has to be
included multiple times in a single C file. Several other files also do not
need header guards as they are only used internally and guaranteed to be
included only once:
* MICROPY_MPHALPORT_H
* mpconfigboard.h
* mpconfigport.h
* mpthreadport.h
* pin_defs_*.h
* qstrdefs*.h
</content>
</entry>
<entry>
<title>stmhal: Move pybstdio.c to lib/utils/sys_stdio_mphal.c for common use.</title>
<updated>2017-06-15T08:55:34+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-15T08:55:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4f9858e86debaaa4a65f0663ac3c67be15000064'/>
<id>urn:sha1:4f9858e86debaaa4a65f0663ac3c67be15000064</id>
<content type='text'>
It provides sys.stdin, sys.stdout, sys.stderr for bare-metal targets based
on mp_hal functions.
</content>
</entry>
<entry>
<title>lib/utils/interrupt_char: Remove support for KBD_EXCEPTION disabled.</title>
<updated>2017-06-02T02:03:57+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-06-02T02:03:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ab954ed5136af8be910b3c3fb9246bad6289a3a4'/>
<id>urn:sha1:ab954ed5136af8be910b3c3fb9246bad6289a3a4</id>
<content type='text'>
If a port is using interrupt_char.c then it must enable
MICROPY_KBD_EXCEPTION.  This is the case for all official ports.
</content>
</entry>
<entry>
<title>various: Spelling fixes</title>
<updated>2017-05-29T08:36:05+00:00</updated>
<author>
<name>Ville Skyttä</name>
<email>ville.skytta@iki.fi</email>
</author>
<published>2017-05-29T07:08:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ca16c3821053e5bf2b87aeb10007f73f31dc1eac'/>
<id>urn:sha1:ca16c3821053e5bf2b87aeb10007f73f31dc1eac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Update event-driven REPL to match non-event REPL.</title>
<updated>2017-05-05T12:15:47+00:00</updated>
<author>
<name>Tom Collins</name>
<email>tom.collins@digi.com</email>
</author>
<published>2017-04-04T22:56:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=288ea06e7ce80c24c242ebd065be39ab3ab64c12'/>
<id>urn:sha1:288ea06e7ce80c24c242ebd065be39ab3ab64c12</id>
<content type='text'>
Don't print dupe "&gt;&gt;&gt; " prompt when starting event-driven REPL.  Clear
incomplete line in transition from raw to friendly REPL.
</content>
</entry>
<entry>
<title>py: Add micropython.schedule() function and associated runtime code.</title>
<updated>2017-03-20T04:20:26+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-02-16T07:05:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6e74d24f30bca3fb70876b1fb9a6b3a59850b83c'/>
<id>urn:sha1:6e74d24f30bca3fb70876b1fb9a6b3a59850b83c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.</title>
<updated>2017-03-14T10:53:46+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-14T10:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3f7aa330fd9e69ef576e911d926ebdadd568c5ea'/>
<id>urn:sha1:3f7aa330fd9e69ef576e911d926ebdadd568c5ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Refactor to put lexer constructors all in one place.</title>
<updated>2017-03-14T00:52:05+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-14T00:21:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=56b238393b8c4172c7054011216792a9546ce7db'/>
<id>urn:sha1:56b238393b8c4172c7054011216792a9546ce7db</id>
<content type='text'>
The lexer can now raise an exception on construction so it must go within
an nlr handler block.
</content>
</entry>
<entry>
<title>lib/utils/pyexec: Allow to compile when the uPy compiler is disabled.</title>
<updated>2017-02-27T04:02:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-02-27T04:02:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3b2fd4df31fad39b66eadefc2b95b143c1b67add'/>
<id>urn:sha1:3b2fd4df31fad39b66eadefc2b95b143c1b67add</id>
<content type='text'>
</content>
</entry>
</feed>
