<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/stmhal/systick.c, branch 5.3.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.3.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2017-09-06T03:40:51+00:00</updated>
<entry>
<title>ports: Make new ports/ sub-directory and move all ports there.</title>
<updated>2017-09-06T03:40:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-09-06T03:40:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=01dd7804b87d60b2deab16712eccb3b97351a9b7'/>
<id>urn:sha1:01dd7804b87d60b2deab16712eccb3b97351a9b7</id>
<content type='text'>
This is to keep the top-level directory clean, to make it clear what is
core and what is a port, and to allow the repository to grow with new ports
in a sustainable way.
</content>
</entry>
<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>stmhal/systick: Make mp_hal_delay_ms release the GIL when sleeping.</title>
<updated>2017-03-22T01:54:43+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-22T01:54:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3509e2d3074486e426b41aa89c6e01d591eb01ad'/>
<id>urn:sha1:3509e2d3074486e426b41aa89c6e01d591eb01ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Enable micropython.schedule().</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-15T12:04:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a5159edc2090a5670c33a829d7e54ab2ba8635c4'/>
<id>urn:sha1:a5159edc2090a5670c33a829d7e54ab2ba8635c4</id>
<content type='text'>
ExtInt, Timer and CAN IRQ callbacks are made to work with the scheduler.
They are still hard IRQs by default, but one can now call
micropython.schedule within the hard IRQ to schedule a soft callback.
</content>
</entry>
<entry>
<title>stmhal: Rename sys_tick ticks/delay functions to corresp. mp_hal ones.</title>
<updated>2017-03-02T04:32:32+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-03-02T04:32:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=89738e8240b0ae6dcc24c48d8e9e5078da90e15a'/>
<id>urn:sha1:89738e8240b0ae6dcc24c48d8e9e5078da90e15a</id>
<content type='text'>
The renames are:
HAL_Delay -&gt; mp_hal_delay_ms
sys_tick_udelay -&gt; mp_hal_delay_us
sys_tick_get_microseconds -&gt; mp_hal_ticks_us

And mp_hal_ticks_ms is added to provide the full set of timing functions.

Also, a separate HAL_Delay function is added which differs slightly from
mp_hal_delay_ms and is intended for use only by the ST HAL functions.
</content>
</entry>
<entry>
<title>stmhal: Implement a proper thread scheduler.</title>
<updated>2017-02-15T02:28:48+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2017-02-06T04:13:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=05a4859585c4e0a55fca2e7467ba70da6453fdcb'/>
<id>urn:sha1:05a4859585c4e0a55fca2e7467ba70da6453fdcb</id>
<content type='text'>
This patch changes the threading implementation from simple round-robin
with busy waits on mutexs, to proper scheduling whereby threads that are
waiting on a mutex are only scheduled when the mutex becomes available.
</content>
</entry>
<entry>
<title>stmhal: Replace #include "stm32f4xx_hal.h" with #include STM32_HAL_H.</title>
<updated>2015-07-29T23:38:25+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-07-28T15:36:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=ea8bf8105812b36fbf1596a78c6e14aa0a0c5a36'/>
<id>urn:sha1:ea8bf8105812b36fbf1596a78c6e14aa0a0c5a36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Prefix includes with py/; remove need for -I../py.</title>
<updated>2015-01-01T21:06:20+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T21:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=2cf6dfa280a8149941aafc852fbaae8bdfc4999e'/>
<id>urn:sha1:2cf6dfa280a8149941aafc852fbaae8bdfc4999e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>stmhal: Make pyb.[u]delay use systick with IRQs, busy loop otherwise.</title>
<updated>2014-11-30T21:23:25+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-11-30T21:23:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=1960475ed7e190bcf537f8f7714a543b7513e2d5'/>
<id>urn:sha1:1960475ed7e190bcf537f8f7714a543b7513e2d5</id>
<content type='text'>
pyb.delay and pyb.udelay now use systick if IRQs are enabled, otherwise
they use a busy loop.  Thus they work correctly when IRQs are disabled.
The busy loop is computed from the current CPU frequency, so works no
matter the CPU frequency.
</content>
</entry>
<entry>
<title>stmhal: Improve efficiency of SysTick IRQ and HAL_Delay.</title>
<updated>2014-08-25T17:12:44+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-08-25T17:12:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=34e43c7ee9700249dc6e5b333b7c264d45d6b530'/>
<id>urn:sha1:34e43c7ee9700249dc6e5b333b7c264d45d6b530</id>
<content type='text'>
SysTick IRQ now increases millisecond counter directly (ie without
calling HAL_IncTick).  Provide our own version of HAL_Delay that does a
wfi while waiting.  This more than halves power consumption when running
a loop containing a pyb.delay call.  It used to be like this, but new
version of HAL library regressed this feature.
</content>
</entry>
</feed>
