<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal, branch v1.3.10</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.10</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=v1.3.10'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2015-02-13T11:57:29+00:00</updated>
<entry>
<title>stmhal: Properly deinit timer object.</title>
<updated>2015-02-13T11:57:29+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-13T11:57:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=418ec8bbbab70ec21486b37860f106f09f2e6f11'/>
<id>urn:sha1:418ec8bbbab70ec21486b37860f106f09f2e6f11</id>
<content type='text'>
Addresses issue #1113.
</content>
</entry>
<entry>
<title>stmhal: Fix ADC multiplier from 4096 to 4095; optimise fp operation.</title>
<updated>2015-02-11T00:25:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-11T00:25:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=91fc4a9ce13311bc5c3bdcd5ddaf75795f8a46b5'/>
<id>urn:sha1:91fc4a9ce13311bc5c3bdcd5ddaf75795f8a46b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Add boot.py and main.py to qstr definitions, to save some RAM.</title>
<updated>2015-02-10T22:27:47+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-10T22:27:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=891e444fec071beabf58eb0e418aaaee4dc327b1'/>
<id>urn:sha1:891e444fec071beabf58eb0e418aaaee4dc327b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Change type of received chr from char to int.</title>
<updated>2015-02-08T13:41:28+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-08T13:41:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5351a48185bef5abd935eb8ab06c2e12e9114d2f'/>
<id>urn:sha1:5351a48185bef5abd935eb8ab06c2e12e9114d2f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Protect mp_parse and mp_compile with nlr push/pop block.</title>
<updated>2015-02-07T18:33:58+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-02-07T18:33:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0bfc7638baa4c5a4a2351364ab770a188dcab302'/>
<id>urn:sha1:0bfc7638baa4c5a4a2351364ab770a188dcab302</id>
<content type='text'>
To enable parsing constants more efficiently, mp_parse should be allowed
to raise an exception, and mp_compile can already raise a MemoryError.
So these functions need to be protected by an nlr push/pop block.

This patch adds that feature in all places.  This allows to simplify how
mp_parse and mp_compile are called: they now raise an exception if they
have an error and so explicit checking is not needed anymore.
</content>
</entry>
<entry>
<title>stmhal/adc.c: Fix calculation of read_core_vref()</title>
<updated>2015-02-06T18:56:27+00:00</updated>
<author>
<name>blmorris</name>
<email>bryan.morrissey@gmail.com</email>
</author>
<published>2015-02-06T18:56:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=97f14606f528180d1482cffbe3571163a1dd9273'/>
<id>urn:sha1:97f14606f528180d1482cffbe3571163a1dd9273</id>
<content type='text'>
There was a stray factor of 2 (VBAT_DIV) that looks like it was copied incorrectly from the read_core_vbat() function.
The factor exists in read_core_vbat() because VBAT is measured through a 2:1 voltage divider.
read_core_vref now returns values around 1.21V (assuming that external reference voltage is 3.3V) which is in line with the datasheet values.
See comment at http://forum.micropython.org/viewtopic.php?f=6&amp;t=533&amp;p=2991#p2991
</content>
</entry>
<entry>
<title>py: Change vstr_null_terminate -&gt; vstr_null_terminated_str, returns str.</title>
<updated>2015-01-29T13:57:23+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-29T13:57:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=827b0f747b2aa4870ef8de90cb0c3a4151e5ce71'/>
<id>urn:sha1:827b0f747b2aa4870ef8de90cb0c3a4151e5ce71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Change vstr so that it doesn't null terminate buffer by default.</title>
<updated>2015-01-28T23:43:01+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-28T23:43:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0d3cb6726ddc1bab9fdd11a0aaa259fb436da4b2'/>
<id>urn:sha1:0d3cb6726ddc1bab9fdd11a0aaa259fb436da4b2</id>
<content type='text'>
This cleans up vstr so that it's a pure "variable buffer", and the user
can decide whether they need to add a terminating null byte.  In most
places where vstr is used, the vstr did not need to be null terminated
and so this patch saves code size, a tiny bit of RAM, and makes vstr
usage more efficient.  When null termination is needed it must be
done explicitly using vstr_null_terminate.
</content>
</entry>
<entry>
<title>stmhal: Remove unnecessary #include "systick.h" from pyexec.c.</title>
<updated>2015-01-28T00:59:27+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-28T00:59:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0ecd5988a24aaa72415d83961327fc034cfe64a2'/>
<id>urn:sha1:0ecd5988a24aaa72415d83961327fc034cfe64a2</id>
<content type='text'>
Makes pyexec.c more re-usable for other ports.
</content>
</entry>
<entry>
<title>stmhal: Disable MICROPY_OPT_CACHE_MAP_LOOKUP_IN_BYTECODE.</title>
<updated>2015-01-24T23:45:37+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-24T23:45:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ad33e2465c243dd6c602a7b1e263df3cf2359230'/>
<id>urn:sha1:ad33e2465c243dd6c602a7b1e263df3cf2359230</id>
<content type='text'>
It uses RAM and on pyboard we are generally tight on RAM, so disable
this optimisation for general builds.  If users need the speed then
they can build their own version.  Maybe in the future we can have
different versions of pyboard firmware built with different tradeoffs.
</content>
</entry>
</feed>
