<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wasp-os.git/wasp/drivers/nrf_rtc.py, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/'/>
<entry>
<title>rtc: Undo the once-per-second wake up</title>
<updated>2021-06-19T07:22:20Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2021-06-19T07:22:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=f221e2f8a4e52f0d14e7d59ceddf65785195129a'/>
<id>f221e2f8a4e52f0d14e7d59ceddf65785195129a</id>
<content type='text'>
So... waking up once per second turns out to be a dumb idea because it
regresses the stop watch and HRS tools (which now also only wake up once
per second).

Undo this change but sprinkle a few more micropython.native decorations
on methods used on the wakeup path to minimise power.

Fixes: fb18705b9b9cc ("manager/rtc: Experimental power saving technique")
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
So... waking up once per second turns out to be a dumb idea because it
regresses the stop watch and HRS tools (which now also only wake up once
per second).

Undo this change but sprinkle a few more micropython.native decorations
on methods used on the wakeup path to minimise power.

Fixes: fb18705b9b9cc ("manager/rtc: Experimental power saving technique")
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: nrf_rtc: Fix sphinx build</title>
<updated>2021-06-18T20:43:47Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2021-06-18T20:43:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=33ff7dc91e33f503f9855e01b4255fe43b548516'/>
<id>33ff7dc91e33f503f9855e01b4255fe43b548516</id>
<content type='text'>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>manager/rtc: Experimental power saving technique</title>
<updated>2021-06-04T09:49:33Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2021-06-04T09:49:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=fb18705b9b9cc10e15e56cea6697839f3779bdb6'/>
<id>fb18705b9b9cc10e15e56cea6697839f3779bdb6</id>
<content type='text'>
Currently the time is calculated 8 times per second from (relatively) slow
python code. Optimize the power consumed by reducing the number of times
we check for wall time updates to only once-per-second and use native
code generation to reduce VM overhead when executing this critical code.

At the time of writing the difference is battery life has not yet been
measured (but we know the current master branch is worse than v0.4 and,
in theory at least, this should close the gap).

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the time is calculated 8 times per second from (relatively) slow
python code. Optimize the power consumed by reducing the number of times
we check for wall time updates to only once-per-second and use native
code generation to reduce VM overhead when executing this critical code.

At the time of writing the difference is battery life has not yet been
measured (but we know the current master branch is worse than v0.4 and,
in theory at least, this should close the gap).

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>manager: Implement alarm callbacks for applications to use</title>
<updated>2020-11-14T12:24:28Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-11-14T12:24:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=d0a99d5636e9e597a44d872b5350c3588b032439'/>
<id>d0a99d5636e9e597a44d872b5350c3588b032439</id>
<content type='text'>
Create a simple time queue where actions (functions or bound methods) can
be queued against the real time clock.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create a simple time queue where actions (functions or bound methods) can
be queued against the real time clock.

Signed-off-by: Daniel Thompson &lt;daniel@redfelineninja.org.uk&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: nrf_rtc: Finalize docstrings</title>
<updated>2020-05-14T20:36:33Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-05-14T20:36:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=880083977cb1de7714404d3b032fa0b6a090a7ca'/>
<id>880083977cb1de7714404d3b032fa0b6a090a7ca</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>drivers: nrf_rtc: Fix some tab/space issues</title>
<updated>2020-05-10T08:34:22Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-05-10T08:34:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=09071427e496ba766ca54d2a2b868b0eb1802412'/>
<id>09071427e496ba766ca54d2a2b868b0eb1802412</id>
<content type='text'>
These issues do not appear when parsing with micropython but when we
import this file into sphinx then things go a bit south.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These issues do not appear when parsing with micropython but when we
import this file into sphinx then things go a bit south.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add PNVRAM support to avoid forgetting the time during a reboot.</title>
<updated>2020-05-09T13:19:10Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-05-09T13:18:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=c1f8823f615855c1a8e5e337e33ba0b36573bc43'/>
<id>c1f8823f615855c1a8e5e337e33ba0b36573bc43</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>wasp: drivers: nrf_rtc: Fix a nasty bug when setting the time</title>
<updated>2020-04-26T14:01:48Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-04-26T13:59:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=2d437b0f68fad9561170a6efaa6dea87230509ca'/>
<id>2d437b0f68fad9561170a6efaa6dea87230509ca</id>
<content type='text'>
The code to recalculate the uptime to walltime adjustment was broken
(e.g. the longer we leave it after reboot the more inaccurate the time
setting becomes).

Fixes: 80079e4 ("wasp: nrf_rtc: Add a tiny bit of extra resolution")
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code to recalculate the uptime to walltime adjustment was broken
(e.g. the longer we leave it after reboot the more inaccurate the time
setting becomes).

Fixes: 80079e4 ("wasp: nrf_rtc: Add a tiny bit of extra resolution")
</pre>
</div>
</content>
</entry>
<entry>
<title>wasp: nrf_rtc: Add a tiny bit of extra resolution</title>
<updated>2020-04-26T14:01:48Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-04-18T14:34:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=9348e758b20a84502baabe46e400dee1811fdd4c'/>
<id>9348e758b20a84502baabe46e400dee1811fdd4c</id>
<content type='text'>
We now have a couple of applications (stopwatch, Game of Life) that benefit
from sub-second precision. The micropython RTC/utime code for nrf still
needs a major overhaul but this allows us to paper over the cracks for
just a little longer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now have a couple of applications (stopwatch, Game of Life) that benefit
from sub-second precision. The micropython RTC/utime code for nrf still
needs a major overhaul but this allows us to paper over the cracks for
just a little longer.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add licensing information for all wasp-os files.</title>
<updated>2020-03-22T15:40:18Z</updated>
<author>
<name>Daniel Thompson</name>
<email>daniel@redfelineninja.org.uk</email>
</author>
<published>2020-03-22T15:40:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.tidal.blue/wasp-os.git/commit/?id=b9fe31241c30bbcc0486f25bfe08af22fd20a555'/>
<id>b9fe31241c30bbcc0486f25bfe08af22fd20a555</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
