<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/circuitpy_mpconfig.h, branch 5.0.0-beta.3</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0-beta.3</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0-beta.3'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2020-01-04T17:32:49+00:00</updated>
<entry>
<title>changes only for monster m4sk</title>
<updated>2020-01-04T17:32:49+00:00</updated>
<author>
<name>Marius-450</name>
<email>marius_450@protonmail.com</email>
</author>
<published>2020-01-04T17:32:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3ad3d49959271b4b33950d9d68daf1b9a722c95f'/>
<id>urn:sha1:3ad3d49959271b4b33950d9d68daf1b9a722c95f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CIRCUITPY_DISPLAY_LIMIT = 2</title>
<updated>2020-01-04T17:20:32+00:00</updated>
<author>
<name>Marius-450</name>
<email>marius_450@protonmail.com</email>
</author>
<published>2020-01-04T17:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d2b2cf0addd3476256d34cde4df2f53f6a2868a9'/>
<id>urn:sha1:d2b2cf0addd3476256d34cde4df2f53f6a2868a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove `re` from CPX Displayio build to make space.</title>
<updated>2019-12-20T19:43:56+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-12-20T19:42:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=b859e2b71013f603bb91539a62ada4e0eee15d48'/>
<id>urn:sha1:b859e2b71013f603bb91539a62ada4e0eee15d48</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge from upstream</title>
<updated>2019-12-11T02:04:46+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-12-11T02:04:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=68ae47907c076a966a533d90371acf65ae9875c8'/>
<id>urn:sha1:68ae47907c076a966a533d90371acf65ae9875c8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>audiocore: Add MP3File using Adafruit_MP3 library</title>
<updated>2019-12-10T20:03:06+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-11-26T15:29:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a08d9e6d8e0059c8aa59feadd7b94d95d691e273'/>
<id>urn:sha1:a08d9e6d8e0059c8aa59feadd7b94d95d691e273</id>
<content type='text'>
</content>
</entry>
<entry>
<title>atmel-samd working</title>
<updated>2019-12-06T20:18:20+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-12-06T20:18:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d628d2a261bb28b84c6b257a990bd9a30cbe369c'/>
<id>urn:sha1:d628d2a261bb28b84c6b257a990bd9a30cbe369c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wip</title>
<updated>2019-12-06T03:45:53+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2019-12-06T03:45:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=40434d691934cf7f5792f91ce0288beb568bab85'/>
<id>urn:sha1:40434d691934cf7f5792f91ce0288beb568bab85</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add connection interval and debugging</title>
<updated>2019-12-04T22:39:02+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2019-11-23T00:33:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=17c8356b8c06ac160bf9fad6b6b4b8b1095d8dcd'/>
<id>urn:sha1:17c8356b8c06ac160bf9fad6b6b4b8b1095d8dcd</id>
<content type='text'>
This also sets TinyUSB to master and to not include its submodules.

It also fixes an old displayio example comment and retries gattc
reads.
</content>
</entry>
<entry>
<title>run_background_tasks: Do nothing unless there has been a tick</title>
<updated>2019-11-18T17:26:48+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-11-18T15:53:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=568636d562b4c64d0095ff2ac921b79eb69e520d'/>
<id>urn:sha1:568636d562b4c64d0095ff2ac921b79eb69e520d</id>
<content type='text'>
This improves performance of running python code by 34%, based
on the "pystone" benchmark on metro m4 express at 5000 passes
(1127.65 -&gt; 1521.6 passes/second).

In addition, by instrumenting the tick function and monitoring on an
oscilloscope, the time actually spent in run_background_tasks() on
the metro m4 decreases from average 43% to 0.5%. (however, there's
some additional overhead that is moved around and not accounted for
in that "0.5%" figure, each time supervisor_run_background_tasks_if_tick
is called but no tick has occurred)

On the CPB, it increases pystone from 633 to 769, a smaller percentage
increase of 21%.  I did not measure the time actually spent in
run_background_tasks() on CPB.

Testing performed: on metro m4 and cpb, run pystone adapted from python3.4
(change time.time to time.monotonic for sub-second resolution)

Besides running a 5000 pass test, I also ran a 50-pass test while
scoping how long an output pin was set.  Average: 34.59ms or 1445/s on m4,
67.61ms or 739/s on cbp, both matching the other pystone result reasonably
well.

import pystone
import board
import digitalio
import time

d = digitalio.DigitalInOut(board.D13)
d.direction = digitalio.Direction.OUTPUT

while True:
    d.value = 0
    time.sleep(.01)
    d.value = 1
    pystone.main(50)
</content>
</entry>
<entry>
<title>Supervisor: move most of systick to the supervisor</title>
<updated>2019-11-18T17:01:23+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2019-11-18T14:22:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7f744a2369a5036cadfa05575da1704f709c98bb'/>
<id>urn:sha1:7f744a2369a5036cadfa05575da1704f709c98bb</id>
<content type='text'>
This code is shared by most parts, except where not all the #ifdefs
inside the tick function were present in all ports.  This mostly would
have broken gamepad tick support on non-samd ports.

The "ms32" and "ms64" variants of the tick functions are introduced
because there is no 64-bit atomic read.  Disabling interrupts avoids
a low probability bug where milliseconds could be off by ~49.5 days
once every ~49.5 days (2^32 ms).

Avoiding disabling interrupts when only the low 32 bits are needed is a minor
optimization.

Testing performed: on metro m4 express, USB still works and
time.monotonic_ns() still counts up
</content>
</entry>
</feed>
