<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/ports/atmel-samd/supervisor/port.c, branch main</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2021-01-12T17:50:08+00:00</updated>
<entry>
<title>samd21 board with only 4 neopixels + two touchpads</title>
<updated>2021-01-12T17:50:08+00:00</updated>
<author>
<name>lady ada</name>
<email>limor@ladyada.net</email>
</author>
<published>2021-01-12T17:50:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=f7f97ae1b780458265db2091c9bb1337c3108aed'/>
<id>urn:sha1:f7f97ae1b780458265db2091c9bb1337c3108aed</id>
<content type='text'>
</content>
</entry>
<entry>
<title>update tinyusb; _ticks_enabled only for SAMD21</title>
<updated>2021-01-08T18:30:11+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2021-01-08T18:30:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=39c166ba6a72d6e95aaf2865ff3e7cade39d04a2'/>
<id>urn:sha1:39c166ba6a72d6e95aaf2865ff3e7cade39d04a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>overflowed tick counter needs 64 bits everywhere</title>
<updated>2021-01-06T16:09:06+00:00</updated>
<author>
<name>Dan Halbert</name>
<email>halbert@halwitz.org</email>
</author>
<published>2021-01-06T16:09:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9a1d864331effd793b0a95bdac592f04b0032178'/>
<id>urn:sha1:9a1d864331effd793b0a95bdac592f04b0032178</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add `board_deinit` for use with sleep</title>
<updated>2020-12-08T18:52:25+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-12-03T02:05:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=40118bcf57f026fd6a58733501c759a9ba87e835'/>
<id>urn:sha1:40118bcf57f026fd6a58733501c759a9ba87e835</id>
<content type='text'>
This changes lots of files to unify `board.h` across ports. It adds
`board_deinit` when CIRCUITPY_ALARM is set. `main.c` uses it to
deinit the board before deep sleeping (even when pretending.)

Deep sleep is now a two step process for the port. First, the
port should prepare to deep sleep based on the given alarms. It
should set alarms for both deep and pretend sleep. In particular,
the pretend versions should be set immediately so that we don't
miss an alarm as we shutdown. These alarms should also wake from
`port_idle_until_interrupt` which is used when pretending to deep
sleep.

Second, when real deep sleeping, `alarm_enter_deep_sleep` is called.
The port should set any alarms it didn't during prepare based on
data it saved internally during prepare.

ESP32-S2 sleep is a bit reorganized to locate more logic with
TimeAlarm. This will help it scale to more alarm types.

Fixes #3786
</content>
</entry>
<entry>
<title>Add movable allocation system.</title>
<updated>2020-11-28T16:50:23+00:00</updated>
<author>
<name>Christian Walther</name>
<email>cwalther@gmx.ch</email>
</author>
<published>2020-10-11T12:59:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=c7404a3ff89c738c002ec63448a58d56330dfcc3'/>
<id>urn:sha1:c7404a3ff89c738c002ec63448a58d56330dfcc3</id>
<content type='text'>
This allows calls to `allocate_memory()` while the VM is running, it will then allocate from the GC heap (unless there is a suitable hole among the supervisor allocations), and when the VM exits and the GC heap is freed, the allocation will be moved to the bottom of the former GC heap and transformed into a proper supervisor allocation. Existing movable allocations will also be moved to defragment the supervisor heap and ensure that the next VM run gets as much memory as possible for the GC heap.

By itself this breaks terminalio because it violates the assumption that supervisor_display_move_memory() still has access to an undisturbed heap to copy the tilegrid from. It will work in many cases, but if you're unlucky you will get garbled terminal contents after exiting from the vm run that created the display. This will be fixed in the following commit, which is separate to simplify review.
</content>
</entry>
<entry>
<title>Remove readreq when changing continuous</title>
<updated>2020-10-13T17:15:34+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-10-13T17:15:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2bc40bcadf36d27d2807ac155f185e6cc55e9ecb'/>
<id>urn:sha1:2bc40bcadf36d27d2807ac155f185e6cc55e9ecb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Finer grained, per port tick locking</title>
<updated>2020-10-13T01:43:21+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-10-13T01:36:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=379e73af2e55b1f0c517883360e29d5dbc27a20b'/>
<id>urn:sha1:379e73af2e55b1f0c517883360e29d5dbc27a20b</id>
<content type='text'>
Fixes #3504 hopefully.
</content>
</entry>
<entry>
<title>Fix autoreload on SAMD21</title>
<updated>2020-10-09T19:53:00+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-10-09T19:53:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3ccf644dd0afd85ad8d8c6c67494cebab172b5a8'/>
<id>urn:sha1:3ccf644dd0afd85ad8d8c6c67494cebab172b5a8</id>
<content type='text'>
The issue was that a time.sleep() would set the RTC wake up
further into the future even if we wanted to tick every ms. Ticking
every ms is used to time the autoreload delay and without it,
autoreload doesn't work.

Fixes #3528
</content>
</entry>
<entry>
<title>atmel-samd: add same51, feather_m4_can</title>
<updated>2020-09-08T18:06:45+00:00</updated>
<author>
<name>Jeff Epler</name>
<email>jepler@gmail.com</email>
</author>
<published>2020-09-08T15:43:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=e066448e369d33f655b4454562a9711e1cbdb2ff'/>
<id>urn:sha1:e066448e369d33f655b4454562a9711e1cbdb2ff</id>
<content type='text'>
This is compile-tested, and requires updates in the related submodules:

https://github.com/adafruit/samd-peripherals/pull/35
https://github.com/adafruit/asf4/pull/37

This should not be merged until those can also be merged.
</content>
</entry>
<entry>
<title>Split pulseio.PWMOut into pwmio</title>
<updated>2020-08-18T20:08:33+00:00</updated>
<author>
<name>Scott Shawcroft</name>
<email>scott@tannewt.org</email>
</author>
<published>2020-08-18T20:08:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=6857f984269149b46d1cd4283506420f341b2601'/>
<id>urn:sha1:6857f984269149b46d1cd4283506420f341b2601</id>
<content type='text'>
This gives us better granularity when implementing new ports because
PWMOut is commonly implemented before PulseIn and PulseOut.

Fixes #3211
</content>
</entry>
</feed>
