fix soc version

This commit is contained in:
bunnie 2021-04-27 21:32:43 +08:00
parent 9ec1de4c01
commit 9997749c4c
3 changed files with 9 additions and 8 deletions

View file

@ -3,7 +3,7 @@
<device schemaVersion="1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:noNamespaceSchemaLocation="CMSIS-SVD.xsd" >
<vendor>litex</vendor>
<name>SOC</name>
<description><![CDATA[Litex SoC 2021-04-27 19:11:31]]></description>
<description><![CDATA[Litex SoC 2021-04-27 19:37:49]]></description>
<addressUnitBits>8</addressUnitBits>
<width>32</width>
@ -1022,7 +1022,7 @@ register to disable individual events.]]></description>
<register>
<name>GIT_MAJOR</name>
<description><![CDATA[Major git tag version. For example, this firmware was built from git tag
``v0.0.0``, so this value is ``0``.]]></description>
``v0.8.0``, so this value is ``0``.]]></description>
<addressOffset>0x0008</addressOffset>
<resetValue>0x00</resetValue>
<size>32</size>
@ -1038,9 +1038,9 @@ register to disable individual events.]]></description>
<register>
<name>GIT_MINOR</name>
<description><![CDATA[Minor git tag version. For example, this firmware was built from git tag
``v0.0.0``, so this value is ``0``.]]></description>
``v0.8.0``, so this value is ``8``.]]></description>
<addressOffset>0x000c</addressOffset>
<resetValue>0x00</resetValue>
<resetValue>0x08</resetValue>
<size>32</size>
<fields>
<field>
@ -1054,7 +1054,7 @@ register to disable individual events.]]></description>
<register>
<name>GIT_REVISION</name>
<description><![CDATA[Revision git tag version. For example, this firmware was built from git tag
``v0.0.0``, so this value is ``0``.]]></description>
``v0.8.0``, so this value is ``0``.]]></description>
<addressOffset>0x0010</addressOffset>
<resetValue>0x00</resetValue>
<size>32</size>
@ -3086,7 +3086,7 @@ inject too fast.]]></description>
<name>SEED1</name>
<description><![CDATA[Bits 32-63 of `SEED_SEED`. Seed used for the build]]></description>
<addressOffset>0x0000</addressOffset>
<resetValue>0x7da57e92</resetValue>
<resetValue>0x54a7f2ac</resetValue>
<size>32</size>
<fields>
<field>
@ -3101,7 +3101,7 @@ inject too fast.]]></description>
<name>SEED0</name>
<description><![CDATA[Bits 0-31 of `SEED_SEED`.]]></description>
<addressOffset>0x0004</addressOffset>
<resetValue>0x63e59e7b</resetValue>
<resetValue>0x7c67acbc</resetValue>
<size>32</size>
<fields>
<field>

Binary file not shown.

View file

@ -116,7 +116,8 @@ pub fn status_thread(canvas_gid_0: usize, canvas_gid_1: usize, canvas_gid_2: usi
let mut rtc = rtc::Rtc::new(&xns).unwrap();
rtc.clear_wakeup_alarm().unwrap(); // clear any wakeup alarm state, if it was set
// TODO: debug why this is unreliable
//rtc.clear_wakeup_alarm().unwrap(); // clear any wakeup alarm state, if it was set
rtc.hook_rtc_callback(dt_callback).unwrap();
let mut datetime: Option<rtc::DateTime> = None;