添加了RTC功能
This commit is contained in:
parent
f7680c093a
commit
6d392981b6
Binary file not shown.
|
@ -22,14 +22,14 @@ Dialog DLL: TARMCM1.DLL V1.14.6.0
|
|||
|
||||
<h2>Project:</h2>
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\MDK\USART1_Interrupt.uvprojx
|
||||
Project File Date: 08/22/2024
|
||||
Project File Date: 08/23/2024
|
||||
|
||||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
|
||||
Build target 'USART1_Interrupt'
|
||||
compiling main.c...
|
||||
linking...
|
||||
Program Size: Code=22818 RO-data=3686 RW-data=320 ZI-data=5680
|
||||
Program Size: Code=24006 RO-data=3786 RW-data=320 ZI-data=5680
|
||||
FromELF: creating hex file...
|
||||
After Build - User command #1: "D:\SXDT\Official_information\HDDZ\demo\CIU32_L051_PROJECT\USART1_Interrupt - RT-Thread\keil5_disp_size_bar\keil5_disp_size_bar.exe"
|
||||
ram:
|
||||
|
@ -37,7 +37,7 @@ ram:
|
|||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö_____________| 36.62 % ( 5.86 KB / 16.00 KB) [10384 B]
|
||||
flash:
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö____________| 40.44 % ( 25.88 KB / 64.00 KB) [39032 B]
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö____________| 42.41 % ( 27.14 KB / 64.00 KB) [37744 B]
|
||||
".\CIU32_L051_M307R.axf" - 0 Error(s), 0 Warning(s).
|
||||
|
||||
<h2>Software Packages used:</h2>
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,6 @@
|
|||
--cpu Cortex-M0+
|
||||
".\main.o"
|
||||
".\bsp_rtc.o"
|
||||
".\startup_ciu32l051.o"
|
||||
".\cmd.o"
|
||||
".\finsh_port.o"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -6,7 +6,7 @@
|
|||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<PrjGuiSettings>
|
||||
<LastAddFilePath>D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\LIB\cm_backtrace</LastAddFilePath>
|
||||
<LastAddFilePath>D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\bsp\src</LastAddFilePath>
|
||||
</PrjGuiSettings>
|
||||
|
||||
<ViewPool/>
|
||||
|
@ -1310,7 +1310,7 @@
|
|||
<RecentRowIndex>0</RecentRowIndex>
|
||||
<RectRecentDocked>
|
||||
<Len>16</Len>
|
||||
<Data>F7000000660000008D05000081000000</Data>
|
||||
<Data>F700000066000000F902000081000000</Data>
|
||||
</RectRecentDocked>
|
||||
<RectRecentFloat>
|
||||
<Len>16</Len>
|
||||
|
@ -1865,9 +1865,9 @@
|
|||
<ActiveTab>0</ActiveTab>
|
||||
<Doc>
|
||||
<Name>..\user\Source\main.c</Name>
|
||||
<ColumnNumber>25</ColumnNumber>
|
||||
<TopLine>15</TopLine>
|
||||
<CurrentLine>43</CurrentLine>
|
||||
<ColumnNumber>4</ColumnNumber>
|
||||
<TopLine>24</TopLine>
|
||||
<CurrentLine>49</CurrentLine>
|
||||
<Folding>1</Folding>
|
||||
<ContractedFolders></ContractedFolders>
|
||||
<PaneID>0</PaneID>
|
||||
|
|
|
@ -238,6 +238,18 @@
|
|||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\bsp\src\bsp_rtc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>bsp_rtc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
|
@ -248,7 +260,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -276,7 +288,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -288,7 +300,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -300,7 +312,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -312,7 +324,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -324,7 +336,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -344,7 +356,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -356,7 +368,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -368,7 +380,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -380,7 +392,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -392,7 +404,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -404,7 +416,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -416,7 +428,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -428,7 +440,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -440,7 +452,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -452,7 +464,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -464,7 +476,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -476,7 +488,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -488,7 +500,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -500,7 +512,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -512,7 +524,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -524,7 +536,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -536,7 +548,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -548,7 +560,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -568,7 +580,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -580,7 +592,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -592,7 +604,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -612,7 +624,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -624,7 +636,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -636,7 +648,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -648,7 +660,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -660,7 +672,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -672,7 +684,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -684,7 +696,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -696,7 +708,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -708,7 +720,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -720,7 +732,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -732,7 +744,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -744,7 +756,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -756,7 +768,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -768,7 +780,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -780,7 +792,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -792,7 +804,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -804,7 +816,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -816,7 +828,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileNumber>47</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -828,7 +840,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>47</FileNumber>
|
||||
<FileNumber>48</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -840,7 +852,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>48</FileNumber>
|
||||
<FileNumber>49</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -852,7 +864,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>49</FileNumber>
|
||||
<FileNumber>50</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -872,7 +884,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>50</FileNumber>
|
||||
<FileNumber>51</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -892,7 +904,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>51</FileNumber>
|
||||
<FileNumber>52</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -904,7 +916,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>52</FileNumber>
|
||||
<FileNumber>53</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -916,7 +928,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>53</FileNumber>
|
||||
<FileNumber>54</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -928,7 +940,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>54</FileNumber>
|
||||
<FileNumber>55</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -956,7 +968,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>55</FileNumber>
|
||||
<FileNumber>56</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -968,7 +980,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>56</FileNumber>
|
||||
<FileNumber>57</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
|
|
@ -393,6 +393,13 @@
|
|||
</Group>
|
||||
<Group>
|
||||
<GroupName>bsp/src</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>bsp_rtc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\bsp\src\bsp_rtc.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>startup</GroupName>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
|
||||
CompilerVersion: 5060960::V5.06 update 7 (build 960)::.\ARMCC
|
||||
F (..\user\Source\main.c)(0x66C7FE93)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ..\RTOS\inc -I ..\RTOS\components\finsh -I ..\drivers\inc -I ..\Peripheral\CIU32L051_Lib\Include -I ..\Peripheral\CMSIS\Core -I ..\Peripheral\CMSIS\Device -I ..\startup -I ..\user\Include -I ..\RTOS -I ..\RTOS\components\utilities\ulog -I ..\RTOS\components\utilities\ulog\backend -I ..\RTOS\components\drivers\inc -I ..\LIB\lwrb -I ..\LIB\RTT -I ..\bsp\inc -I ..\LIB\LwUtil
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
-D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o .\main.o --omf_browse .\main.crf --depend .\main.d)
|
||||
F (..\user\Source\main.c)(0x66C82655)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ..\RTOS\inc -I ..\RTOS\components\finsh -I ..\drivers\inc -I ..\Peripheral\CIU32L051_Lib\Include -I ..\Peripheral\CMSIS\Core -I ..\Peripheral\CMSIS\Device -I ..\startup -I ..\user\Include -I ..\RTOS -I ..\RTOS\components\utilities\ulog -I ..\RTOS\components\utilities\ulog\backend -I ..\RTOS\components\drivers\inc -I ..\LIB\lwrb -I ..\LIB\RTT -I ..\bsp\inc -I ..\LIB\LwUtil
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
-D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o .\main.o --omf_browse .\main.crf --depend .\main.d)
|
||||
I (..\RTOS\inc\rtthread.h)(0x66C2AEFD)
|
||||
I (..\RTOS\rtconfig.h)(0x66C6D0B0)
|
||||
I (..\RTOS\inc\RTE_Components.h)(0x66C2AAF3)
|
||||
|
@ -51,8 +51,57 @@ I (..\drivers\inc\drv_uart.h)(0x66C6F4F9)
|
|||
I (..\RTOS\inc\rthw.h)(0x66C2AAF4)
|
||||
I (..\LIB\lwrb\lwrb.h)(0x66C53844)
|
||||
I (C:\Keil_v5\ARM\ARMCC\include\string.h)(0x5E8E3CC2)
|
||||
I (..\bsp\inc\bsp_rtc.h)(0x66C82552)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x666E44C6)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\bsp\src\bsp_rtc.c)(0x66C825F1)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ..\RTOS\inc -I ..\RTOS\components\finsh -I ..\drivers\inc -I ..\Peripheral\CIU32L051_Lib\Include -I ..\Peripheral\CMSIS\Core -I ..\Peripheral\CMSIS\Device -I ..\startup -I ..\user\Include -I ..\RTOS -I ..\RTOS\components\utilities\ulog -I ..\RTOS\components\utilities\ulog\backend -I ..\RTOS\components\drivers\inc -I ..\LIB\lwrb -I ..\LIB\RTT -I ..\bsp\inc -I ..\LIB\LwUtil
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
-D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o .\bsp_rtc.o --omf_browse .\bsp_rtc.crf --depend .\bsp_rtc.d)
|
||||
I (..\bsp\inc\bsp_rtc.h)(0x66C82552)
|
||||
I (..\RTOS\inc\rtthread.h)(0x66C2AEFD)
|
||||
I (..\RTOS\rtconfig.h)(0x66C6D0B0)
|
||||
I (..\RTOS\inc\RTE_Components.h)(0x66C2AAF3)
|
||||
I (..\RTOS\components\finsh\finsh_config.h)(0x66C577C2)
|
||||
I (..\RTOS\inc\rtdebug.h)(0x66C2AAF3)
|
||||
I (..\RTOS\inc\rtdef.h)(0x66C5610E)
|
||||
I (C:\Keil_v5\ARM\ARMCC\include\stdarg.h)(0x5E8E3CC2)
|
||||
I (..\RTOS\inc\rtservice.h)(0x66C2AAF4)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h)(0x65E679B7)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h)(0x65800BC5)
|
||||
I (C:\Keil_v5\ARM\ARMCC\include\stddef.h)(0x5E8E3CC2)
|
||||
I (C:\Keil_v5\ARM\ARMCC\include\stdbool.h)(0x5E8E3CC2)
|
||||
I (..\Peripheral\CMSIS\Device\ciu32l051.h)(0x65E68265)
|
||||
I (..\Peripheral\CMSIS\Core\core_cm0plus.h)(0x65800BC8)
|
||||
I (C:\Keil_v5\ARM\ARMCC\include\stdint.h)(0x5E8E3CC2)
|
||||
I (..\Peripheral\CMSIS\Core\cmsis_version.h)(0x65800BC8)
|
||||
I (..\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
|
||||
I (..\Peripheral\CMSIS\Core\cmsis_armcc.h)(0x65800BC8)
|
||||
I (..\Peripheral\CMSIS\Device\system_ciu32l051.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h)(0x66138664)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h)(0x661645AE)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h)(0x6656B817)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h)(0x65E67A4D)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h)(0x6699C27A)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h)(0x6656A3F6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h)(0x661645AE)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h)(0x665E764E)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h)(0x6613CF0C)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h)(0x65E6836D)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h)(0x66ACA92A)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h)(0x65800BC5)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||
I (..\RTOS\components\finsh\finsh_api.h)(0x66C2AAF0)
|
||||
F (..\startup\startup_ciu32l051.s)(0x66C6D715)(--cpu Cortex-M0+ -g --apcs=interwork --pd "__MICROLIB SETA 1"
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
--pd "__UVISION_VERSION SETA 539" --pd "CIU32L051 SETA 1"
--list .\listings\startup_ciu32l051.lst --xref -o .\startup_ciu32l051.o --depend .\startup_ciu32l051.d)
|
||||
F (..\RTOS\components\finsh\cmd.c)(0x66C2BE4F)(--c99 -c --cpu Cortex-M0+ -D__MICROLIB -g -O3 --apcs=interwork --split_sections -I ..\RTOS\inc -I ..\RTOS\components\finsh -I ..\drivers\inc -I ..\Peripheral\CIU32L051_Lib\Include -I ..\Peripheral\CMSIS\Core -I ..\Peripheral\CMSIS\Device -I ..\startup -I ..\user\Include -I ..\RTOS -I ..\RTOS\components\utilities\ulog -I ..\RTOS\components\utilities\ulog\backend -I ..\RTOS\components\drivers\inc -I ..\LIB\lwrb -I ..\LIB\RTT -I ..\bsp\inc -I ..\LIB\LwUtil
-IC:\Users\16005\AppData\Local\Arm\Packs\HED\CIU32L0xx_DFP\1.2.5\Drivers\CMSIS\Device\CIU32L051\Include
-D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o .\cmd.o --omf_browse .\cmd.crf --depend .\cmd.d)
|
||||
I (..\RTOS\inc\rthw.h)(0x66C2AAF4)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: ER_IROM1
|
||||
[Exec base]: 0x8000000
|
||||
[Size]: 0x6788
|
||||
[Size]: 0x6c90
|
||||
[Max]: 0x10000
|
||||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: RW_IRAM1
|
||||
|
@ -17,7 +17,7 @@
|
|||
RW_IRAM1 :0x20000000
|
||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö_____________| 36.62 % ( 5.86 KB / 16.00 KB) [10384 B]
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄö____________| 40.44 % ( 25.88 KB / 64.00 KB) [39032 B]
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄö____________| 42.41 % ( 27.14 KB / 64.00 KB) [37744 B]
|
||||
[export csv]: ./USART1_Interrupt_sort_by_flash.csv
|
||||
[export csv]: ./USART1_Interrupt_sort_by_ram.csv
|
||||
[export xlsx]: USART1_Interrupt_analysis.xlsx
|
||||
|
|
Binary file not shown.
|
@ -1,50 +1,54 @@
|
|||
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
|
||||
cmd.o,12.902396%,3511,0,2572,939,0,0
|
||||
ipc.o,9.425988%,2565,0,1918,647,0,0
|
||||
thread.o,8.555049%,2328,12,2058,258,12,0
|
||||
mem.o,7.254153%,1974,72,1596,346,32,40
|
||||
kservice.o,6.724974%,1830,264,1532,290,8,256
|
||||
ulog.o,6.236219%,1697,604,1420,253,24,580
|
||||
drv_uart.o,6.144348%,1672,1604,1652,8,12,1592
|
||||
shell.o,5.556372%,1512,281,1410,78,24,257
|
||||
timer.o,5.063942%,1378,20,1266,92,20,0
|
||||
object.o,3.895340%,1060,132,800,128,132,0
|
||||
msh.o,3.704248%,1008,0,840,168,0,0
|
||||
segger_rtt_printf.o,3.447009%,938,0,922,16,0,0
|
||||
segger_rtt.o,2.377628%,647,1208,614,33,0,1208
|
||||
scheduler.o,2.102014%,572,280,496,52,24,256
|
||||
mc_p.l,1.727179%,470,0,470,0,0,0
|
||||
lwrb.o,1.550786%,422,0,422,0,0,0
|
||||
cpuport.o,1.146553%,312,12,300,0,12,0
|
||||
idle.o,0.962811%,262,416,240,22,0,416
|
||||
main.o,0.933412%,254,0,208,46,0,0
|
||||
components.o,0.926062%,252,0,216,36,0,0
|
||||
ciu32l051_std_rcc.o,0.867264%,236,0,236,0,0,0
|
||||
system_ciu32l051.o,0.837866%,228,4,192,32,4,0
|
||||
ciu32l051_std_usart.o,0.830516%,226,0,226,0,0,0
|
||||
startup_ciu32l051.o,0.808467%,220,1024,28,192,0,1024
|
||||
drv_common.o,0.808467%,220,0,220,0,0,0
|
||||
context_rvds.o,0.793767%,216,0,216,0,0,0
|
||||
ciu32l051_std_gpio.o,0.712921%,194,0,194,0,0,0
|
||||
ciu32l051_std_dma.o,0.499780%,136,0,136,0,0,0
|
||||
board.o,0.492430%,134,0,134,0,0,0
|
||||
irq.o,0.396884%,108,12,96,0,12,0
|
||||
clock.o,0.374835%,102,4,98,0,4,0
|
||||
__dczerorl2.o,0.316037%,86,0,86,0,0,0
|
||||
console_be.o,0.213141%,58,48,54,4,0,48
|
||||
uidiv.o,0.161693%,44,0,44,0,0,0
|
||||
idiv.o,0.146994%,40,0,40,0,0,0
|
||||
memseta.o,0.132295%,36,0,36,0,0,0
|
||||
memcpya.o,0.132295%,36,0,36,0,0,0
|
||||
init.o,0.132295%,36,0,36,0,0,0
|
||||
strncmp.o,0.110245%,30,0,30,0,0,0
|
||||
handlers.o,0.110245%,30,0,30,0,0,0
|
||||
strncpy.o,0.095546%,26,0,26,0,0,0
|
||||
memcmp.o,0.095546%,26,0,26,0,0,0
|
||||
strcat.o,0.088196%,24,0,24,0,0,0
|
||||
strcpy.o,0.066147%,18,0,18,0,0,0
|
||||
strlen.o,0.051448%,14,0,14,0,0,0
|
||||
entry9a.o,0.029399%,8,0,8,0,0,0
|
||||
entry2.o,0.029399%,8,0,8,0,0,0
|
||||
entry5.o,0.014699%,4,0,4,0,0,0
|
||||
entry12b.o,0.014699%,4,0,4,0,0,0
|
||||
cmd.o,12.302464%,3511,0,2572,939,0,0
|
||||
ipc.o,8.987701%,2565,0,1918,647,0,0
|
||||
thread.o,8.157258%,2328,12,2058,258,12,0
|
||||
mem.o,6.916851%,1974,72,1596,346,32,40
|
||||
kservice.o,6.412278%,1830,264,1532,290,8,256
|
||||
ulog.o,5.946249%,1697,604,1420,253,24,580
|
||||
drv_uart.o,5.858650%,1672,1604,1652,8,12,1592
|
||||
shell.o,5.298013%,1512,281,1410,78,24,257
|
||||
timer.o,4.828480%,1378,20,1266,92,20,0
|
||||
object.o,3.714216%,1060,132,800,128,132,0
|
||||
msh.o,3.532009%,1008,0,840,168,0,0
|
||||
segger_rtt_printf.o,3.286731%,938,0,922,16,0,0
|
||||
bsp_rtc.o,2.869757%,819,0,720,99,0,0
|
||||
segger_rtt.o,2.267073%,647,1208,614,33,0,1208
|
||||
scheduler.o,2.004275%,572,280,496,52,24,256
|
||||
mc_p.l,1.646869%,470,0,470,0,0,0
|
||||
lwrb.o,1.478678%,422,0,422,0,0,0
|
||||
main.o,1.436631%,410,0,364,46,0,0
|
||||
cpuport.o,1.093241%,312,12,300,0,12,0
|
||||
ciu32l051_std_rtc.o,0.953082%,272,0,272,0,0,0
|
||||
idle.o,0.918042%,262,416,240,22,0,416
|
||||
components.o,0.883002%,252,0,216,36,0,0
|
||||
ciu32l051_std_rcc.o,0.826939%,236,0,236,0,0,0
|
||||
system_ciu32l051.o,0.798907%,228,4,192,32,4,0
|
||||
ciu32l051_std_usart.o,0.791899%,226,0,226,0,0,0
|
||||
startup_ciu32l051.o,0.770875%,220,1024,28,192,0,1024
|
||||
drv_common.o,0.770875%,220,0,220,0,0,0
|
||||
context_rvds.o,0.756859%,216,0,216,0,0,0
|
||||
ciu32l051_std_gpio.o,0.679772%,194,0,194,0,0,0
|
||||
ciu32l051_std_dma.o,0.476541%,136,0,136,0,0,0
|
||||
board.o,0.469533%,134,0,134,0,0,0
|
||||
irq.o,0.378430%,108,12,96,0,12,0
|
||||
clock.o,0.357406%,102,4,98,0,4,0
|
||||
__dczerorl2.o,0.301342%,86,0,86,0,0,0
|
||||
console_be.o,0.203231%,58,48,54,4,0,48
|
||||
uidiv.o,0.154175%,44,0,44,0,0,0
|
||||
mf_p.l,0.140159%,40,0,40,0,0,0
|
||||
ffixui.o,0.140159%,40,0,40,0,0,0
|
||||
idiv.o,0.140159%,40,0,40,0,0,0
|
||||
memseta.o,0.126143%,36,0,36,0,0,0
|
||||
memcpya.o,0.126143%,36,0,36,0,0,0
|
||||
init.o,0.126143%,36,0,36,0,0,0
|
||||
strncmp.o,0.105119%,30,0,30,0,0,0
|
||||
handlers.o,0.105119%,30,0,30,0,0,0
|
||||
strncpy.o,0.091103%,26,0,26,0,0,0
|
||||
memcmp.o,0.091103%,26,0,26,0,0,0
|
||||
strcat.o,0.084095%,24,0,24,0,0,0
|
||||
strcpy.o,0.063072%,18,0,18,0,0,0
|
||||
strlen.o,0.049056%,14,0,14,0,0,0
|
||||
entry9a.o,0.028032%,8,0,8,0,0,0
|
||||
entry2.o,0.028032%,8,0,8,0,0,0
|
||||
entry5.o,0.014016%,4,0,4,0,0,0
|
||||
entry12b.o,0.014016%,4,0,4,0,0,0
|
||||
|
|
|
BIN
MDK/board.o
BIN
MDK/board.o
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,50 @@
|
|||
.\bsp_rtc.o: ..\bsp\src\bsp_rtc.c
|
||||
.\bsp_rtc.o: ..\bsp\inc\bsp_rtc.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\rtthread.h
|
||||
.\bsp_rtc.o: ..\RTOS\rtconfig.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\rtthread.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\RTE_Components.h
|
||||
.\bsp_rtc.o: ..\RTOS\components\finsh\finsh_config.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\rtdebug.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\rtdef.h
|
||||
.\bsp_rtc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdarg.h
|
||||
.\bsp_rtc.o: ..\RTOS\inc\rtservice.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h
|
||||
.\bsp_rtc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stddef.h
|
||||
.\bsp_rtc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdbool.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Device\ciu32l051.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Core\core_cm0plus.h
|
||||
.\bsp_rtc.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\stdint.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Core\cmsis_version.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Core\cmsis_compiler.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Core\cmsis_armcc.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CMSIS\Device\system_ciu32l051.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h
|
||||
.\bsp_rtc.o: ..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h
|
||||
.\bsp_rtc.o: ..\RTOS\components\finsh\finsh_api.h
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
MDK/clock.o
BIN
MDK/clock.o
Binary file not shown.
BIN
MDK/components.o
BIN
MDK/components.o
Binary file not shown.
BIN
MDK/console_be.o
BIN
MDK/console_be.o
Binary file not shown.
BIN
MDK/cpuport.o
BIN
MDK/cpuport.o
Binary file not shown.
BIN
MDK/drv_common.o
BIN
MDK/drv_common.o
Binary file not shown.
BIN
MDK/drv_gpio.o
BIN
MDK/drv_gpio.o
Binary file not shown.
BIN
MDK/drv_uart.o
BIN
MDK/drv_uart.o
Binary file not shown.
BIN
MDK/finsh_port.o
BIN
MDK/finsh_port.o
Binary file not shown.
BIN
MDK/idle.o
BIN
MDK/idle.o
Binary file not shown.
BIN
MDK/kservice.o
BIN
MDK/kservice.o
Binary file not shown.
BIN
MDK/lwrb.o
BIN
MDK/lwrb.o
Binary file not shown.
BIN
MDK/lwutil.o
BIN
MDK/lwutil.o
Binary file not shown.
BIN
MDK/main.crf
BIN
MDK/main.crf
Binary file not shown.
|
@ -51,5 +51,6 @@
|
|||
.\main.o: ..\RTOS\inc\rthw.h
|
||||
.\main.o: ..\LIB\lwrb\lwrb.h
|
||||
.\main.o: C:\Keil_v5\ARM\ARMCC\Bin\..\include\string.h
|
||||
.\main.o: ..\bsp\inc\bsp_rtc.h
|
||||
.\main.o: ..\RTOS\components\utilities\ulog\ulog.h
|
||||
.\main.o: ..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
|
|
BIN
MDK/main.o
BIN
MDK/main.o
Binary file not shown.
BIN
MDK/memheap.o
BIN
MDK/memheap.o
Binary file not shown.
BIN
MDK/mempool.o
BIN
MDK/mempool.o
Binary file not shown.
BIN
MDK/object.o
BIN
MDK/object.o
Binary file not shown.
BIN
MDK/ringbuffer.o
BIN
MDK/ringbuffer.o
Binary file not shown.
BIN
MDK/scheduler.o
BIN
MDK/scheduler.o
Binary file not shown.
BIN
MDK/segger_rtt.o
BIN
MDK/segger_rtt.o
Binary file not shown.
Binary file not shown.
BIN
MDK/shell.o
BIN
MDK/shell.o
Binary file not shown.
BIN
MDK/slab.o
BIN
MDK/slab.o
Binary file not shown.
Binary file not shown.
BIN
MDK/thread.o
BIN
MDK/thread.o
Binary file not shown.
BIN
MDK/timer.o
BIN
MDK/timer.o
Binary file not shown.
BIN
MDK/ulog.o
BIN
MDK/ulog.o
Binary file not shown.
|
@ -12,14 +12,9 @@ extern "C" {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void BSP_Rtc_Get_Calendar(uint8_t *rtcdate, uint8_t *rtctime);
|
||||
void BSP_Rtc_Alarm_Config(uint8_t hours, uint8_t minutes, uint8_t seconds);
|
||||
void BSP_Rtc_DateTime_Cfg(uint8_t years, uint8_t months, uint8_t days, uint8_t hour, uint8_t minute, uint8_t second, uint8_t week);
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,392 @@
|
|||
#include "bsp_rtc.h"
|
||||
|
||||
/* 时钟精度ppm值,根据实测RTC时钟精度填写 */
|
||||
#define FRTC_PPM (-20L)
|
||||
#define TIMES_TO_GET_TR (0x03) /* 两次读日历不一致后再次循环次数 */
|
||||
|
||||
/**
|
||||
* @brief RTC中断服务函数
|
||||
* @retval 无
|
||||
*/
|
||||
void RTC_TAMP_IRQHandler(void)
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
|
||||
/* 校准周期中断处理流程 */
|
||||
if (std_rtc_get_calib_interrupt_enable() && std_rtc_get_interrupt_flag(RTC_INTERRUPT_FLAG_CALIBRATION))
|
||||
{
|
||||
/* 清除校准周期标志 */
|
||||
std_rtc_clear_flag(RTC_CLEAR_CALIBRATION);
|
||||
}
|
||||
/* TAMP IN中断处理流程 */
|
||||
if (std_tamp_get_interrupt_enable(TAMP_INTERRUPT_TAMP_IN) && std_tamp_get_interrupt_flag(TAMP_INTERRUPT_FLAG_TAMP_IN))
|
||||
{
|
||||
/* 清除外部入侵检测(外部引脚)的标志 */
|
||||
std_tamp_clear_flag(TAMP_CLEAR_FLAG_TAMP_IN);
|
||||
}
|
||||
/* 闹钟中断处理流程 */
|
||||
if (std_rtc_get_alarm_interrupt_enable() && std_rtc_get_interrupt_flag(RTC_INTERRUPT_FLAG_ALARM))
|
||||
{
|
||||
/* 清除闹钟标志 */
|
||||
std_rtc_clear_flag(RTC_CLEAR_ALARM);
|
||||
}
|
||||
/* 秒周期中断处理流程 */
|
||||
if(std_rtc_get_wut_interrupt_enable(RTC_WUT_INTERRUPT_SEC) && std_rtc_get_interrupt_flag(RTC_INTERRUPT_FLAG_SEC))
|
||||
{
|
||||
/* 清除秒周期中断标志 */
|
||||
std_rtc_clear_flag(RTC_CLEAR_SEC);
|
||||
}
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RTC日期时间配置
|
||||
* @retval 无 BCD输入
|
||||
*/
|
||||
void BSP_Rtc_DateTime_Cfg(uint8_t years, uint8_t months, uint8_t days, uint8_t hour, uint8_t minute, uint8_t second, uint8_t week)
|
||||
{
|
||||
std_rtc_time_t rtc_time = {0};
|
||||
std_rtc_date_t rtc_date = {0};
|
||||
std_status_t status = STD_ERR;
|
||||
|
||||
/* RTC日期(BCD码)初始化 */
|
||||
// rtc_date.weekday = RTC_WEEKDAY_FRIDAY;
|
||||
// rtc_date.month = RTC_MONTH_AUGUST;
|
||||
|
||||
rtc_date.weekday = week;
|
||||
rtc_date.month = months;
|
||||
rtc_date.day = days;
|
||||
rtc_date.year = years;
|
||||
|
||||
status = std_rtc_date_init(&rtc_date);
|
||||
while (status != STD_OK)
|
||||
{
|
||||
/* RTC日期初始化失败处理代码 */
|
||||
}
|
||||
|
||||
/* RTC时间(BCD码)初始化 */
|
||||
rtc_time.hours = hour;
|
||||
rtc_time.minutes = minute;
|
||||
rtc_time.seconds = second;
|
||||
|
||||
status = std_rtc_time_init(&rtc_time);
|
||||
while (status != STD_OK)
|
||||
{
|
||||
/* RTC时间初始化失败处理代码 */
|
||||
}
|
||||
}
|
||||
MSH_CMD_EXPORT(BSP_Rtc_DateTime_Cfg, " BCD格式输入 RTC日期时间配置:y,m,d,h,m,s,w ");
|
||||
|
||||
/**
|
||||
* @brief RTC_OUT输出信号配置
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_OutPut_Config(void)
|
||||
{
|
||||
/* 关闭RTC寄存器写保护 */
|
||||
std_rtc_write_protection_disable();
|
||||
|
||||
/* 配置RTC_OUT输出1Hz */
|
||||
std_rtc_out_config(RTC_OUTPUT_SPRE_1HZ);
|
||||
|
||||
/* 配置RTC_OUT输出使能 */
|
||||
std_rtc_output_enable();
|
||||
|
||||
/* 使能RTC寄存器写保护 */
|
||||
std_rtc_write_protection_enable();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RTC_OUT输出信号配置
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Output_Cfg(void)
|
||||
{
|
||||
/* 配置RTC_OUT输出1Hz */
|
||||
std_rtc_out_config(RTC_OUTPUT_SPRE_1HZ);
|
||||
/* 配置RTC_OUT输出使能 */
|
||||
std_rtc_output_enable();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 外部引脚入侵检测TAMP IN配置
|
||||
* @retval 无
|
||||
*/
|
||||
void bsp_rtc_tamp_in_config(void)
|
||||
{
|
||||
/* 关闭RTC寄存器写保护 */
|
||||
std_rtc_write_protection_disable();
|
||||
|
||||
/* 关闭RTC_OUT信号输出 */
|
||||
std_rtc_output_disable();
|
||||
|
||||
/* RTC寄存器写保护使能 */
|
||||
std_rtc_write_protection_enable();
|
||||
|
||||
/* 禁止外部入侵检测 */
|
||||
std_tamp_disable(TAMP_SOURCE_TAMP_IN);
|
||||
|
||||
/* 设置入侵检测触发方式 */
|
||||
std_tamp_set_trigger(TAMP_TRIGGER_FALLING_EDGE);
|
||||
|
||||
/* 设置入侵检测引脚数字滤波参数 */
|
||||
std_tamp_set_filter(TAMP_FILTER_DISABLE);
|
||||
|
||||
/* 使能入侵检测引脚上拉电阻 */
|
||||
std_tamp_pullup_enable();
|
||||
|
||||
/* 使能外部入侵检测中断 */
|
||||
std_tamp_interrupt_enable(TAMP_INTERRUPT_TAMP_IN);
|
||||
|
||||
/* 使能外部入侵检测 */
|
||||
std_tamp_enable(TAMP_SOURCE_TAMP_IN);
|
||||
|
||||
/* 配置中断优先级 */
|
||||
NVIC_SetPriority(RTC_TAMP_IRQn, NVIC_PRIO_0);
|
||||
/* 使能中断 */
|
||||
NVIC_EnableIRQ(RTC_TAMP_IRQn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RTC闹钟配置
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Alarm_Config(uint8_t hours, uint8_t minutes, uint8_t seconds)
|
||||
{
|
||||
std_rtc_alarm_t rtc_alarm = {0};
|
||||
|
||||
/* 禁止闹钟 */
|
||||
std_rtc_write_protection_disable();
|
||||
std_rtc_alarm_disable();
|
||||
std_rtc_write_protection_enable();
|
||||
|
||||
/* 闹钟初始化 */
|
||||
rtc_alarm.time.hours = std_rtc_convert_bin2bcd(hours);
|
||||
rtc_alarm.time.minutes = std_rtc_convert_bin2bcd(minutes);
|
||||
rtc_alarm.time.seconds = std_rtc_convert_bin2bcd(seconds);
|
||||
rtc_alarm.time_mask = RTC_ALARM_MASK_NONE;
|
||||
|
||||
std_rtc_alarm_init(&rtc_alarm);
|
||||
|
||||
/* 使能闹钟,开启闹钟中断 */
|
||||
std_rtc_write_protection_disable();
|
||||
std_rtc_alarm_interrupt_enable();
|
||||
std_rtc_alarm_enable();
|
||||
std_rtc_write_protection_enable();
|
||||
|
||||
/* 配置中断优先级 */
|
||||
NVIC_SetPriority(RTC_TAMP_IRQn, NVIC_PRIO_0);
|
||||
/* 使能中断 */
|
||||
NVIC_EnableIRQ(RTC_TAMP_IRQn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RTC唤醒定时器配置
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Wakeup_Config(void)
|
||||
{
|
||||
/* 关闭RTC寄存器写保护 */
|
||||
std_rtc_write_protection_disable();
|
||||
|
||||
/* 使能秒周期、2Hz周期定时中断 */
|
||||
std_rtc_wut_interrupt_enable(RTC_WUT_INTERRUPT_SEC | RTC_WUT_INTERRUPT_2HZ);
|
||||
|
||||
/* 使能RTC寄存器写保护 */
|
||||
std_rtc_write_protection_enable();
|
||||
|
||||
/* 配置中断优先级 */
|
||||
NVIC_SetPriority(RTC_TAMP_IRQn, NVIC_PRIO_0);
|
||||
/* 使能中断 */
|
||||
NVIC_EnableIRQ(RTC_TAMP_IRQn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 使能PMU低功耗配置
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Pmu_LowPower_Config(void)
|
||||
{
|
||||
std_rcc_apb1_clk_enable(RCC_PERIPH_CLK_PMU);
|
||||
|
||||
/* 使能超低功耗配置 */
|
||||
std_pmu_ultra_lowpower_enable();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @brief 获取日历日期与时间
|
||||
* @param rtcdate 输出日期信息
|
||||
* @param rtctime 输出时间信息
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Get_Calendar(uint8_t *rtcdate, uint8_t *rtctime)
|
||||
{
|
||||
uint32_t i, read_ok = 0;
|
||||
uint32_t temp_time1 = 0, temp_time2 = 0;
|
||||
uint32_t temp_date1 = 0, temp_date2 = 0;
|
||||
|
||||
/* 读取日历 */
|
||||
for (i = 0; i < TIMES_TO_GET_TR; i++)
|
||||
{
|
||||
/* 读一次日历时间 */
|
||||
temp_time1 = std_rtc_time_get_time();
|
||||
temp_date1 = std_rtc_date_get_date();
|
||||
|
||||
/* 再读一次日历时间 */
|
||||
temp_time2 = std_rtc_time_get_time();
|
||||
temp_date2 = std_rtc_date_get_date();
|
||||
|
||||
/* 连续两次读取结果比对 */
|
||||
if ((temp_time1 == temp_time2) && (temp_date1 == temp_date2))
|
||||
{
|
||||
/* 两者一致,表示读取成功 */
|
||||
read_ok = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* 时间读取正确 */
|
||||
if (read_ok)
|
||||
{
|
||||
/* 获取时间 */
|
||||
rtctime[0] = (temp_time1 >> RTC_OFFSET_HOUR) & 0xFF;
|
||||
rtctime[1] = (temp_time1 >> RTC_OFFSET_MINUTE) & 0xFF;
|
||||
rtctime[2] = temp_time1 & 0xFF;
|
||||
|
||||
/* 获取日期 */
|
||||
rtcdate[0] = (temp_date1 >> RTC_OFFSET_YEAR) & 0xFF;
|
||||
rtcdate[1] = (temp_date1 >> RTC_OFFSET_MONTH) & 0xFF;
|
||||
rtcdate[2] = temp_date1 & 0xFF;
|
||||
}
|
||||
|
||||
/* 时间读取不正确 */
|
||||
else
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
/* 时间读取不正确处理代码 */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 获取时间戳日期与时间
|
||||
* @param timestamp_date 输出时间戳日期信息
|
||||
* @param timestamp_time 输出时间戳时间信息
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Get_Timestamp(uint8_t *timestamp_date, uint8_t *timestamp_time)
|
||||
{
|
||||
/* 等待时间戳标志TSF置1 */
|
||||
while (!std_rtc_get_flag(RTC_FLAG_TIMESTAMP));
|
||||
|
||||
/* 读取时间戳时间 */
|
||||
timestamp_time[0] = std_rtc_timestamp_get_hour();
|
||||
timestamp_time[1] = std_rtc_timestamp_get_minute();
|
||||
timestamp_time[2] = std_rtc_timestamp_get_second();
|
||||
|
||||
/* 读取时间戳日期 */
|
||||
timestamp_date[0] = std_rtc_timestamp_get_day();
|
||||
timestamp_date[1] = std_rtc_timestamp_get_month();
|
||||
|
||||
/* 清除时间戳标志 */
|
||||
std_rtc_clear_flag(RTC_CLEAR_TIMESTAMP);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 配置RTC时钟数字平滑校准参数
|
||||
* @param calib_plus_pulses 插入时钟脉冲控制
|
||||
* @arg RTC_SMOOTH_CALIB_PLUS_PULSES_RESET
|
||||
* @arg RTC_SMOOTH_CALIB_PLUS_PULSES_SET
|
||||
* @param calib_minus_pulses 屏蔽时钟脉冲个数
|
||||
* @retval 无
|
||||
*/
|
||||
void BSP_Rtc_Calib_Cfg(uint32_t calib_plus_pulses, uint32_t calib_minus_pulses)
|
||||
{
|
||||
/* 开启校准周期中断 */
|
||||
std_rtc_calib_interrupt_enable();
|
||||
|
||||
/* 配置数字平滑校准参数 */
|
||||
while (std_rtc_cal_get_status());
|
||||
std_rtc_cal_config(calib_plus_pulses, calib_minus_pulses);
|
||||
|
||||
/* 配置中断优先级 */
|
||||
NVIC_SetPriority(RTC_TAMP_IRQn, NVIC_PRIO_0);
|
||||
/* 使能中断 */
|
||||
NVIC_EnableIRQ(RTC_TAMP_IRQn);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief RTC时钟设置 RTC在VCORE_AON域,可使用VCORE_AON复位清除所有寄存器状态
|
||||
* @retval 无
|
||||
*/
|
||||
void rtc_clock_config(void)
|
||||
{
|
||||
/* RTC APB时钟使能 */
|
||||
std_rcc_apb1_clk_enable(RCC_PERIPH_CLK_RTC);
|
||||
|
||||
/* 使能PMU时钟,开启VCORE_AON写使能 */
|
||||
std_rcc_apb1_clk_enable(RCC_PERIPH_CLK_PMU);
|
||||
std_pmu_vaon_write_enable();
|
||||
|
||||
/* 使能LXTAL时钟 */
|
||||
std_rcc_lxtal_drive_mode_config(RCC_LXTAL_DRIVE_MODE_ENHANCE);
|
||||
std_rcc_lxtal_drive_config(RCC_LXTAL_DRIVE_LEVEL2);
|
||||
std_rcc_lxtal_enable(RCC_LXTAL_ON);
|
||||
while (!std_rcc_get_lxtal_ready());
|
||||
|
||||
/* 选择LXTAL作为RTC时钟源
|
||||
|
||||
注意: 选择RTC时钟源后,以下情况可重新配置RTC时钟源:
|
||||
- VCORE_AON域复位
|
||||
*/
|
||||
std_rcc_set_rtcclk_source(RCC_RTC_ASYNC_CLK_SRC_LXTAL);
|
||||
|
||||
/* RTC外设时钟使能 */
|
||||
std_rcc_rtc_enable();
|
||||
}
|
||||
|
||||
int BSP_RTC_Init(void)
|
||||
{
|
||||
float calp_val = 0, calm_val = 0;
|
||||
|
||||
/* RTC时钟源选择LXTAL */
|
||||
rtc_clock_config();
|
||||
/* RTC在VCORE_AON域,可使用VCORE_AON复位清除所有寄存器状态 */
|
||||
|
||||
/* 关闭RTC寄存器写保护 */
|
||||
std_rtc_write_protection_disable();
|
||||
|
||||
/* RTC_OUT输出预分频的时钟信号1Hz */
|
||||
BSP_Rtc_Output_Cfg();
|
||||
|
||||
/* 等待3s */
|
||||
rt_thread_mdelay(3000);
|
||||
|
||||
if (FRTC_PPM > 0)
|
||||
{
|
||||
calp_val = RTC_SMOOTH_CALIB_PLUS_PULSES_RESET;
|
||||
calm_val = FRTC_PPM / 0.954 + 0.5;
|
||||
}
|
||||
else if (FRTC_PPM < 0)
|
||||
{
|
||||
calp_val = RTC_SMOOTH_CALIB_PLUS_PULSES_SET;
|
||||
calm_val = (512 + (FRTC_PPM / 0.954) + 0.5);
|
||||
}
|
||||
|
||||
/* 设置校准参数 */
|
||||
BSP_Rtc_Calib_Cfg((uint32_t)calp_val, (uint32_t)calm_val);
|
||||
|
||||
/* 使能RTC寄存器写保护 */
|
||||
std_rtc_write_protection_enable();
|
||||
|
||||
/* RTC日期时间配置 */
|
||||
BSP_Rtc_DateTime_Cfg(0x24, 0x08, 0x23, 0x14, 0x03, 0x05, 0x05);
|
||||
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_PREV_EXPORT(BSP_RTC_Init);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-19 10:10:06
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-08-23 11:15:27
|
||||
* @LastEditTime: 2024-08-23 14:04:05
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include "rtthread.h"
|
||||
#include "drv_uart.h"
|
||||
#include "bsp_rtc.h"
|
||||
|
||||
|
||||
#define LOG_TAG "main"
|
||||
|
@ -40,6 +41,7 @@
|
|||
|
||||
int main(void)
|
||||
{
|
||||
uint8_t rtctime[3], rtcdate[3];
|
||||
LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
||||
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock/1000000);
|
||||
|
||||
|
@ -48,7 +50,13 @@ int main(void)
|
|||
while (1)
|
||||
{
|
||||
// UART1_SendString("test CIU32 L051 uart1 dma send RT-Thread!\r\n");
|
||||
rt_thread_mdelay(10000);
|
||||
|
||||
/* ťńČĄČŐŔúČŐĆÚÓëĘąźä */
|
||||
BSP_Rtc_Get_Calendar(rtcdate, rtctime);
|
||||
LOG_D("RTC Time: %04d-%02d-%02d %02d:%02d:%02d\n",
|
||||
2000 + std_rtc_convert_bcd2bin(rtcdate[0]),std_rtc_convert_bcd2bin(rtcdate[1]), std_rtc_convert_bcd2bin(rtcdate[2]),
|
||||
std_rtc_convert_bcd2bin(rtctime[0]), std_rtc_convert_bcd2bin(rtctime[1]), std_rtc_convert_bcd2bin(rtctime[2]));
|
||||
rt_thread_mdelay(5000);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue