添加了激光传感器模块
This commit is contained in:
parent
d6d10cae75
commit
1a9f49a958
Binary file not shown.
|
@ -22,29 +22,28 @@ 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: 09/09/2024
|
||||
Project File Date: 09/14/2024
|
||||
|
||||
<h2>Output:</h2>
|
||||
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
|
||||
Build target 'USART1_Interrupt'
|
||||
compiling cpu.c...
|
||||
compiling bsp_button.c...
|
||||
compiling cpu.c...
|
||||
compiling slab.c...
|
||||
compiling bsp_io_dev.c...
|
||||
compiling idle.c...
|
||||
compiling bsp_adc.c...
|
||||
compiling bsp_flash.c...
|
||||
compiling ipc.c...
|
||||
linking...
|
||||
Program Size: Code=33458 RO-data=7742 RW-data=144 ZI-data=11760
|
||||
Program Size: Code=38166 RO-data=7774 RW-data=144 ZI-data=11072
|
||||
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:
|
||||
RW_IRAM1 :0x20000000
|
||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 72.66 % ( 11.62 KB / 16.00 KB) [4480 B]
|
||||
16.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö_______| 68.46 % ( 10.95 KB / 16.00 KB) [5168 B]
|
||||
flash:
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö________| 62.87 % ( 40.23 KB / 64.00 KB) [24336 B]
|
||||
64.00 KB :|¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö¡ö______| 70.10 % ( 44.86 KB / 64.00 KB) [19596 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
|
@ -6,6 +6,7 @@
|
|||
".\bsp_button.o"
|
||||
".\bsp_io_dev.o"
|
||||
".\bsp_adc.o"
|
||||
".\bsp_sensor.o"
|
||||
".\startup_ciu32l051.o"
|
||||
".\cmd.o"
|
||||
".\finsh_port.o"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -73,7 +73,7 @@
|
|||
<LExpSel>0</LExpSel>
|
||||
</OPTXL>
|
||||
<OPTFL>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<IsCurrentTarget>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
|
@ -153,7 +153,24 @@
|
|||
<Name></Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Breakpoint>
|
||||
<Bp>
|
||||
<Number>0</Number>
|
||||
<Type>0</Type>
|
||||
<LineNumber>189</LineNumber>
|
||||
<EnabledFlag>1</EnabledFlag>
|
||||
<Address>0</Address>
|
||||
<ByteObject>0</ByteObject>
|
||||
<HtxType>0</HtxType>
|
||||
<ManyObjects>0</ManyObjects>
|
||||
<SizeOfObject>0</SizeOfObject>
|
||||
<BreakByAccess>0</BreakByAccess>
|
||||
<BreakIfRCount>0</BreakIfRCount>
|
||||
<Filename>..\bsp\src\bsp_sensor.c</Filename>
|
||||
<ExecCommand></ExecCommand>
|
||||
<Expression></Expression>
|
||||
</Bp>
|
||||
</Breakpoint>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
|
@ -304,6 +321,18 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>..\bsp\src\bsp_sensor.c</PathWithFileName>
|
||||
<FilenameWithoutPath>bsp_sensor.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
|
@ -314,7 +343,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -342,7 +371,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -354,7 +383,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -366,7 +395,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -378,7 +407,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -390,7 +419,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -410,7 +439,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -422,7 +451,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -434,7 +463,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -446,7 +475,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -458,7 +487,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -470,7 +499,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -482,7 +511,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -494,7 +523,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -506,7 +535,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -518,7 +547,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>23</FileNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -530,7 +559,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>24</FileNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -542,7 +571,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>25</FileNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -554,7 +583,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>26</FileNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -566,7 +595,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>27</FileNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -578,7 +607,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>28</FileNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -590,7 +619,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>29</FileNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -602,7 +631,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>30</FileNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -614,7 +643,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>31</FileNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -626,7 +655,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>32</FileNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -638,7 +667,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>6</GroupNumber>
|
||||
<FileNumber>33</FileNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -658,7 +687,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>34</FileNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -670,7 +699,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>35</FileNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -682,7 +711,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>7</GroupNumber>
|
||||
<FileNumber>36</FileNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -702,7 +731,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>37</FileNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -714,7 +743,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>38</FileNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -726,7 +755,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>39</FileNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -738,7 +767,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>40</FileNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -750,7 +779,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>41</FileNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -762,7 +791,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>42</FileNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -774,7 +803,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>43</FileNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -786,7 +815,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>44</FileNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -798,7 +827,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>45</FileNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -810,7 +839,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>46</FileNumber>
|
||||
<FileNumber>47</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -822,7 +851,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>47</FileNumber>
|
||||
<FileNumber>48</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -834,7 +863,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>48</FileNumber>
|
||||
<FileNumber>49</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -846,7 +875,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>49</FileNumber>
|
||||
<FileNumber>50</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -858,7 +887,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>50</FileNumber>
|
||||
<FileNumber>51</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -870,7 +899,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>51</FileNumber>
|
||||
<FileNumber>52</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -882,7 +911,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>52</FileNumber>
|
||||
<FileNumber>53</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -894,7 +923,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>53</FileNumber>
|
||||
<FileNumber>54</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -906,7 +935,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>54</FileNumber>
|
||||
<FileNumber>55</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -918,7 +947,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>55</FileNumber>
|
||||
<FileNumber>56</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -930,7 +959,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>56</FileNumber>
|
||||
<FileNumber>57</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -942,7 +971,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>8</GroupNumber>
|
||||
<FileNumber>57</FileNumber>
|
||||
<FileNumber>58</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -962,7 +991,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>9</GroupNumber>
|
||||
<FileNumber>58</FileNumber>
|
||||
<FileNumber>59</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -982,7 +1011,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>59</FileNumber>
|
||||
<FileNumber>60</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -994,7 +1023,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>60</FileNumber>
|
||||
<FileNumber>61</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1006,7 +1035,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>61</FileNumber>
|
||||
<FileNumber>62</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1018,7 +1047,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>62</FileNumber>
|
||||
<FileNumber>63</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1030,7 +1059,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>63</FileNumber>
|
||||
<FileNumber>64</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1042,7 +1071,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>64</FileNumber>
|
||||
<FileNumber>65</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1054,7 +1083,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>65</FileNumber>
|
||||
<FileNumber>66</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1066,7 +1095,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>10</GroupNumber>
|
||||
<FileNumber>66</FileNumber>
|
||||
<FileNumber>67</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1094,7 +1123,7 @@
|
|||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>67</FileNumber>
|
||||
<FileNumber>68</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
@ -1106,7 +1135,7 @@
|
|||
</File>
|
||||
<File>
|
||||
<GroupNumber>12</GroupNumber>
|
||||
<FileNumber>68</FileNumber>
|
||||
<FileNumber>69</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
|
|
|
@ -425,6 +425,11 @@
|
|||
<FileType>1</FileType>
|
||||
<FilePath>..\bsp\src\bsp_adc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>bsp_sensor.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>..\bsp\src\bsp_sensor.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Dependencies for Project 'USART1_Interrupt', Target 'USART1_Interrupt': (DO NOT MODIFY !)
|
||||
CompilerVersion: 6210000::V6.21::ARMCLANG
|
||||
F (..\user\Source\main.c)(0x66D9518D)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
||||
F (..\user\Source\main.c)(0x66E537B2)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./main.o -MD)
|
||||
I (..\RTOS\components\finsh\finsh_config.ha.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ha.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||
|
@ -96,7 +96,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
|||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||
I (..\RTOS\components\finsh\finsh_api.h)(0x66C2AAF0)
|
||||
F (..\bsp\src\bsp_history.c)(0x66D94537)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_history.o -MD)
|
||||
F (..\bsp\src\bsp_history.c)(0x66E530DE)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_history.o -MD)
|
||||
I (..\RTOS\inc\rtthread.h..\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -249,7 +249,7 @@ I (..\RTOS\components\finsh\finsh_api.hi.\LIB\agile_led\agile_led.h)(0x00000000)
|
|||
I (..\LIB\FlexibleButton-master\flexible_button.h)(0x66B5791C)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\bsp\src\bsp_io_dev.c)(0x66D9570C)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_io_dev.o -MD)
|
||||
F (..\bsp\src\bsp_io_dev.c)(0x66E537FF)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_io_dev.o -MD)
|
||||
I (..\drivers\inc\drv_gpio.h\.\RTOS\inc\rtthread.he.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.ht.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.ht.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -294,9 +294,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
|||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||
I (..\RTOS\components\finsh\finsh_api.hi.\LIB\agile_led\agile_led.h)(0x00000000)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\bsp\src\bsp_adc.c)(0x66E4E1A2)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_adc.o -MD)
|
||||
F (..\bsp\src\bsp_adc.c)(0x66E54A2D)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_adc.o -MD)
|
||||
I (..\RTOS\inc\rtthread.h\.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -344,6 +342,58 @@ I (..\RTOS\components\finsh\finsh_api.hi.\bsp\inc\bsp_rtc.h)(0x00000000)
|
|||
I (..\RTOS\inc\rthw.h\.\drivers\inc\drv_gpio.h)(0x00000000)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\bsp\src\bsp_sensor.c)(0x66E54E13)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./bsp_sensor.o -MD)
|
||||
I (..\RTOS\inc\rtthread.hc.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
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)(0x66E3D226)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h)(0x65800BC5)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stddef.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdbool.h)(0x6569B012)
|
||||
I (..\Peripheral\CMSIS\Device\ciu32l051.h)(0x65E68265)
|
||||
I (..\Peripheral\CMSIS\Core\core_cm0plus.h)(0x65800BC8)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdint.h)(0x6569B012)
|
||||
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h)(0x65800BC8)
|
||||
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h)(0x65800BC8)
|
||||
I (D:\SXDT\Project\HED\4G\USART1_Interrupt - RT-Thread\Peripheral\CMSIS\Core\cmsis_armclang.h)(0x65800BC8)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\arm_compat.h)(0x64F9642C)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\arm_acle.h)(0x6569B010)
|
||||
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)(0x66D6BBA1)
|
||||
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\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||
I (..\RTOS\components\finsh\finsh_api.hi.\drivers\inc\drv_uart.h)(0x00000000)
|
||||
I (..\RTOS\inc\rthw.h\.\LIB\lwrb\lwrb.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdio.hh\bsp\inc\bsp_voice.h)(0x00000000)
|
||||
I (..\drivers\inc\drv_gpio.hn.\RTOS\components\drivers\inc\serial.h)(0x00000000)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\startup\startup_ciu32l051.s)(0x66C6D715)(--cpu Cortex-M0+ -g --pd "__MICROLIB SETA 1" --diag_suppress=A1950W
-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)(0x66D91B4B)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./cmd.o -MD)
|
||||
I (..\RTOS\inc\rtthread.hs.\RTOS\rtconfig.h)(0x00000000)
|
||||
|
@ -537,7 +587,7 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
|||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||
I (..\RTOS\components\finsh\finsh_api.h)(0x66C2AAF0)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
F (..\RTOS\components\finsh\shell.c)(0x66D81D60)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./shell.o -MD)
|
||||
F (..\RTOS\components\finsh\shell.c)(0x66E52548)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./shell.o -MD)
|
||||
I (..\RTOS\inc\rtthread.hs.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -587,7 +637,7 @@ I (C:\Keil_v5\ARM\ARMCLANG\include\ctype.h)(0x6569B012)
|
|||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h)(0x6569B012)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x6569B012)
|
||||
I (..\RTOS\components\finsh\shell.hs.\RTOS\components\finsh\msh.h)(0x00000000)
|
||||
F (..\RTOS\src\board.c)(0x66D942DE)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
||||
F (..\RTOS\src\board.c)(0x66E53C96)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./board.o -MD)
|
||||
I (..\RTOS\inc\rthw.hc.\RTOS\inc\rtthread.hN.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -1533,8 +1583,8 @@ I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h)(0x65800BC6)
|
|||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h)(0x65800BC5)
|
||||
I (..\RTOS\components\drivers\inc\dev_pin.h)(0x66D9591B)
|
||||
I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
|
||||
I (..\drivers\inc\drv_gpio.h)(0x66D95A9E)
|
||||
F (..\drivers\src\drv_uart.c)(0x66E4DFAB)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
||||
I (..\drivers\inc\drv_gpio.h)(0x66E5207E)
|
||||
F (..\drivers\src\drv_uart.c)(0x66E54CF6)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./drv_uart.o -MD)
|
||||
I (..\RTOS\inc\rtthread.ht.\RTOS\rtconfig.h)(0x00000000)
|
||||
I (..\RTOS\components\finsh\finsh_config.hh.\RTOS\inc\rtdebug.h)(0x00000000)
|
||||
I (..\RTOS\inc\rtdef.hf.\RTOS\inc\stdarg.hh.\RTOS\inc\rtservice.h)(0x00000000)
|
||||
|
@ -1582,7 +1632,8 @@ I (..\RTOS\components\finsh\finsh_api.hi.\RTOS\inc\rthw.h)(0x00000000)
|
|||
I (..\LIB\lwrb\lwrb.h\:\Keil_v5\ARM\ARMCLANG\include\string.h)(0x00000000)
|
||||
I (..\RTOS\components\drivers\inc\serial.hN.\LIB\LwUtil\lwutil.h)(0x00000000)
|
||||
I (C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h..\bsp\inc\bsp_history.h)(0x00000000)
|
||||
I (..\drivers\inc\drv_gpio.hn.\RTOS\components\utilities\ulog\ulog.h)(0x00000000)
|
||||
I (..\drivers\inc\drv_gpio.hn.\bsp\inc\bsp_sensor.h)(0x00000000)
|
||||
I (..\RTOS\components\utilities\ulog\ulog.h)(0x66D94573)
|
||||
I (..\RTOS\components\utilities\ulog\ulog_def.h)(0x666E44C6)
|
||||
F (..\Peripheral\CIU32L051_Lib\Source\ciu32l051_std.c)(0x6614AB29)(-xc -std=gnu99 --target=arm-arm-none-eabi -mcpu=cortex-m0plus -c
-fno-rtti -funsigned-char -fshort-enums -fshort-wchar
-D__MICROLIB -gdwarf-4 -Oz -ffunction-sections -Wno-packed -Wno-missing-variable-declarations -Wno-missing-prototypes -Wno-missing-noreturn -Wno-sign-conversion -Wno-nonportable-include-path -Wno-reserved-id-macro -Wno-unused-macros -Wno-documentation-unknown-command -Wno-documentation -Wno-license-management -Wno-parentheses-equality -Wno-reserved-identifier -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 -I ../LIB/perf_counter -I ../LIB/agile_led -I ../LIB/FlexibleButton-master -D__UVISION_VERSION="539" -DCIU32L051 -DCIU32L051
-o ./ciu32l051_std.o -MD)
|
||||
I (..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h)(0x66138664)
|
||||
|
|
|
@ -6,18 +6,18 @@
|
|||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: ER_IROM1
|
||||
[Exec base]: 0x8000000
|
||||
[Size]: 0xa0f0
|
||||
[Size]: 0xb374
|
||||
[Max]: 0x10000
|
||||
[Found keyword]: ----------Execution Region----------
|
||||
[name]: RW_IRAM1
|
||||
[Exec base]: 0x20000000
|
||||
[Size]: 0x2e80
|
||||
[Size]: 0x2bd0
|
||||
[Max]: 0x4000
|
||||
[parse_keil_map over printf bar]:
|
||||
RW_IRAM1 :0x20000000
|
||||
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 72.66 % ( 11.62 KB / 16.00 KB) [4480 B]
|
||||
16.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö_______| 68.46 % ( 10.95 KB / 16.00 KB) [5168 B]
|
||||
ER_IROM1 :0x8000000
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö________| 62.87 % ( 40.23 KB / 64.00 KB) [24336 B]
|
||||
64.00 KB :|ĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄöĄö______| 70.10 % ( 44.86 KB / 64.00 KB) [19596 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,77 +1,101 @@
|
|||
File_name,flash percent,flash,ram,Code,RO_data,RW_data,ZI_data
|
||||
cmd.o,10.493595%,4473,0,2872,1601,0,0
|
||||
bsp_flash.o,8.978088%,3827,4,2880,947,0,4
|
||||
ipc.o,5.757050%,2454,0,1440,1014,0,0
|
||||
kservice.o,5.086098%,2168,268,1912,256,0,268
|
||||
ulog.o,5.069676%,2161,589,1950,211,0,589
|
||||
thread.o,5.029794%,2144,12,1902,242,0,12
|
||||
mem.o,4.410454%,1880,72,1512,368,0,72
|
||||
shell.o,4.220429%,1799,281,1768,31,0,281
|
||||
drv_uart.o,3.582321%,1527,2436,1470,57,0,2436
|
||||
bsp_history.o,3.455637%,1473,1684,1384,89,0,1684
|
||||
agile_led.o,3.246845%,1384,1220,1184,200,0,1220
|
||||
bsp_adc.o,2.880871%,1228,1320,1148,80,0,1320
|
||||
timer.o,2.714306%,1157,20,1002,155,0,20
|
||||
object.o,2.503167%,1067,148,832,107,128,20
|
||||
drv_gpio.o,2.449209%,1044,0,244,800,0,0
|
||||
bsp_button.o,2.409328%,1027,684,636,391,0,684
|
||||
device.o,2.388214%,1018,0,706,312,0,0
|
||||
msh.o,2.216957%,945,0,784,161,0,0
|
||||
mc_p.l,2.062122%,879,4,742,133,4,0
|
||||
bsp_rtc.o,1.639844%,699,6,600,99,0,6
|
||||
lwrb.o,1.435743%,612,0,612,0,0,0
|
||||
flexible_button.o,1.266832%,540,16,540,0,0,16
|
||||
scheduler.o,1.177685%,502,280,484,18,0,280
|
||||
dev_pin.o,1.130765%,482,56,420,62,0,56
|
||||
mf_p.l,1.126073%,480,0,480,0,0,0
|
||||
perf_counter.o,0.727256%,310,56,298,4,8,48
|
||||
cpuport.o,0.722564%,308,12,308,0,0,12
|
||||
idle.o,0.633416%,270,416,248,22,0,416
|
||||
board.o,0.609956%,260,0,260,0,0,0
|
||||
components.o,0.572421%,244,0,228,16,0,0
|
||||
ciu32l051_std_rtc.o,0.553653%,236,0,236,0,0,0
|
||||
startup_ciu32l051.o,0.516117%,220,1024,28,192,0,1024
|
||||
context_rvds.o,0.506733%,216,0,216,0,0,0
|
||||
ciu32l051_std_rcc.o,0.506733%,216,0,216,0,0,0
|
||||
main.o,0.495003%,211,0,160,51,0,0
|
||||
drv_common.o,0.478581%,204,0,204,0,0,0
|
||||
system_ciu32l051.o,0.469197%,200,4,164,32,4,0
|
||||
ciu32l051_std_flash.o,0.441045%,188,0,188,0,0,0
|
||||
ciu32l051_std_usart.o,0.436353%,186,0,186,0,0,0
|
||||
_strtoul.o,0.389434%,166,0,166,0,0,0
|
||||
ciu32l051_std_gpio.o,0.361282%,154,0,154,0,0,0
|
||||
ciu32l051_std_adc.o,0.347206%,148,0,148,0,0,0
|
||||
ctype_o.o,0.330784%,141,0,8,133,0,0
|
||||
fepilogue.o,0.304978%,130,0,130,0,0,0
|
||||
segger_rtt.o,0.304978%,130,1208,104,26,0,1208
|
||||
perf_os_patch_rt_thread.o,0.297940%,127,0,118,9,0,0
|
||||
fdiv.o,0.290902%,124,0,124,0,0,0
|
||||
fmul.o,0.286210%,122,0,122,0,0,0
|
||||
bsp_io_dev.o,0.265096%,113,12,100,13,0,12
|
||||
strtol.o,0.262750%,112,0,112,0,0,0
|
||||
ciu32l051_std_dma.o,0.234599%,100,0,100,0,0,0
|
||||
console_be.o,0.211139%,90,48,86,4,0,48
|
||||
irq.o,0.206447%,88,12,88,0,0,12
|
||||
uidiv_div0.o,0.145451%,62,0,62,0,0,0
|
||||
clock.o,0.126683%,54,4,54,0,0,4
|
||||
ffixi.o,0.117299%,50,0,50,0,0,0
|
||||
init.o,0.112607%,48,0,48,0,0,0
|
||||
f2d.o,0.093839%,40,0,40,0,0,0
|
||||
cpp_init.o,0.093839%,40,0,40,0,0,0
|
||||
memseta.o,0.084455%,36,0,36,0,0,0
|
||||
memcpya.o,0.084455%,36,0,36,0,0,0
|
||||
strncmp.o,0.070380%,30,0,30,0,0,0
|
||||
handlers.o,0.070380%,30,0,30,0,0,0
|
||||
_chval.o,0.070380%,30,0,30,0,0,0
|
||||
strncpy.o,0.060996%,26,0,26,0,0,0
|
||||
memcmp.o,0.060996%,26,0,26,0,0,0
|
||||
atoi.o,0.060996%,26,0,26,0,0,0
|
||||
ciu32l051_std.o,0.056304%,24,0,24,0,0,0
|
||||
strchr.o,0.046920%,20,0,20,0,0,0
|
||||
ffltui.o,0.032844%,14,0,14,0,0,0
|
||||
strlen.o,0.032844%,14,0,14,0,0,0
|
||||
errno.o,0.028152%,12,4,8,0,4,0
|
||||
entry9a.o,0.018768%,8,0,8,0,0,0
|
||||
entry2.o,0.018768%,8,0,8,0,0,0
|
||||
entry8a.o,0.009384%,4,0,4,0,0,0
|
||||
entry5.o,0.009384%,4,0,4,0,0,0
|
||||
cmd.o,8.738547%,4473,0,2872,1601,0,0
|
||||
bsp_flash.o,7.476508%,3827,4,2880,947,0,4
|
||||
mc_p.l,7.359291%,3767,4,3630,133,4,0
|
||||
ipc.o,4.794186%,2454,0,1440,1014,0,0
|
||||
kservice.o,4.235450%,2168,140,1912,256,0,140
|
||||
ulog.o,4.190517%,2145,333,1934,211,0,333
|
||||
thread.o,4.188563%,2144,12,1902,242,0,12
|
||||
drv_uart.o,4.186610%,2143,2208,2070,73,0,2208
|
||||
mem.o,3.672807%,1880,72,1512,368,0,72
|
||||
shell.o,3.514564%,1799,153,1768,31,0,153
|
||||
bsp_history.o,2.893313%,1481,1684,1392,89,0,1684
|
||||
agile_led.o,2.703811%,1384,1220,1184,200,0,1220
|
||||
mf_p.l,2.695997%,1380,0,1380,0,0,0
|
||||
timer.o,2.260339%,1157,20,1002,155,0,20
|
||||
object.o,2.084514%,1067,148,832,107,128,20
|
||||
drv_gpio.o,2.039580%,1044,0,244,800,0,0
|
||||
bsp_button.o,2.006369%,1027,684,636,391,0,684
|
||||
device.o,1.988786%,1018,0,706,312,0,0
|
||||
bsp_sensor.o,1.928224%,987,1256,970,17,0,1256
|
||||
msh.o,1.846172%,945,0,784,161,0,0
|
||||
scanf_fp.o,1.754352%,898,0,898,0,0,0
|
||||
_scanf.o,1.609784%,824,0,824,0,0,0
|
||||
bsp_rtc.o,1.365581%,699,6,600,99,0,6
|
||||
lwrb.o,1.238596%,634,0,634,0,0,0
|
||||
flexible_button.o,1.054955%,540,16,540,0,0,16
|
||||
scheduler.o,0.980718%,502,280,484,18,0,280
|
||||
dev_pin.o,0.941645%,482,56,420,62,0,56
|
||||
bsp_adc.o,0.734562%,376,112,300,76,0,112
|
||||
ciu32l051_std_lpuart.o,0.648602%,332,0,332,0,0,0
|
||||
_scanf_int.o,0.644695%,330,0,330,0,0,0
|
||||
perf_counter.o,0.605623%,310,56,298,4,8,48
|
||||
cpuport.o,0.601715%,308,12,308,0,0,12
|
||||
idle.o,0.527478%,270,416,248,22,0,416
|
||||
components.o,0.476684%,244,0,228,16,0,0
|
||||
ddiv.o,0.468869%,240,0,240,0,0,0
|
||||
depilogue.o,0.461055%,236,0,236,0,0,0
|
||||
ciu32l051_std_rtc.o,0.461055%,236,0,236,0,0,0
|
||||
_scanf_str.o,0.453240%,232,0,232,0,0,0
|
||||
startup_ciu32l051.o,0.429797%,220,1024,28,192,0,1024
|
||||
context_rvds.o,0.421982%,216,0,216,0,0,0
|
||||
ciu32l051_std_rcc.o,0.421982%,216,0,216,0,0,0
|
||||
main.o,0.412214%,211,0,160,51,0,0
|
||||
dmul.o,0.406353%,208,0,208,0,0,0
|
||||
board.o,0.406353%,208,0,208,0,0,0
|
||||
drv_common.o,0.398539%,204,0,204,0,0,0
|
||||
system_ciu32l051.o,0.390724%,200,4,164,32,4,0
|
||||
ciu32l051_std_flash.o,0.367281%,188,0,188,0,0,0
|
||||
ciu32l051_std_usart.o,0.363374%,186,0,186,0,0,0
|
||||
strtod.o,0.351652%,180,0,180,0,0,0
|
||||
_strtoul.o,0.324301%,166,0,166,0,0,0
|
||||
ciu32l051_std_gpio.o,0.300858%,154,0,154,0,0,0
|
||||
ctype_o.o,0.275461%,141,0,8,133,0,0
|
||||
fepilogue.o,0.253971%,130,0,130,0,0,0
|
||||
segger_rtt.o,0.253971%,130,1208,104,26,0,1208
|
||||
perf_os_patch_rt_thread.o,0.248110%,127,0,118,9,0,0
|
||||
fdiv.o,0.242249%,124,0,124,0,0,0
|
||||
fmul.o,0.238342%,122,0,122,0,0,0
|
||||
bsp_io_dev.o,0.220759%,113,12,100,13,0,12
|
||||
strtol.o,0.218806%,112,0,112,0,0,0
|
||||
ciu32l051_std_dma.o,0.195362%,100,0,100,0,0,0
|
||||
uldiv.o,0.187548%,96,0,96,0,0,0
|
||||
console_be.o,0.175826%,90,48,86,4,0,48
|
||||
irq.o,0.171919%,88,12,88,0,0,12
|
||||
_sgetc.o,0.132846%,68,0,68,0,0,0
|
||||
uidiv_div0.o,0.121125%,62,0,62,0,0,0
|
||||
__0sscanf.o,0.117217%,60,0,60,0,0,0
|
||||
d2f.o,0.109403%,56,0,56,0,0,0
|
||||
clock.o,0.105496%,54,4,54,0,0,4
|
||||
ffixi.o,0.097681%,50,0,50,0,0,0
|
||||
llmul.o,0.093774%,48,0,48,0,0,0
|
||||
init.o,0.093774%,48,0,48,0,0,0
|
||||
m_ps.l,0.085959%,44,0,44,0,0,0
|
||||
dcmplt.o,0.085959%,44,0,44,0,0,0
|
||||
dcmple.o,0.085959%,44,0,44,0,0,0
|
||||
dcmpge.o,0.085959%,44,0,44,0,0,0
|
||||
scanf_char.o,0.085959%,44,0,44,0,0,0
|
||||
atof.o,0.085959%,44,0,44,0,0,0
|
||||
f2d.o,0.078145%,40,0,40,0,0,0
|
||||
cpp_init.o,0.078145%,40,0,40,0,0,0
|
||||
memseta.o,0.070330%,36,0,36,0,0,0
|
||||
memcpya.o,0.070330%,36,0,36,0,0,0
|
||||
errno.o,0.070330%,36,4,32,0,4,0
|
||||
llushr.o,0.066423%,34,0,34,0,0,0
|
||||
llshl.o,0.062516%,32,0,32,0,0,0
|
||||
strncmp.o,0.058609%,30,0,30,0,0,0
|
||||
handlers.o,0.058609%,30,0,30,0,0,0
|
||||
_chval.o,0.058609%,30,0,30,0,0,0
|
||||
dfltul.o,0.054701%,28,0,28,0,0,0
|
||||
strncpy.o,0.050794%,26,0,26,0,0,0
|
||||
memcmp.o,0.050794%,26,0,26,0,0,0
|
||||
atoi.o,0.050794%,26,0,26,0,0,0
|
||||
ciu32l051_std.o,0.046887%,24,0,24,0,0,0
|
||||
strchr.o,0.039072%,20,0,20,0,0,0
|
||||
isspace_o.o,0.035165%,18,0,18,0,0,0
|
||||
ffltui.o,0.027351%,14,0,14,0,0,0
|
||||
strlen.o,0.027351%,14,0,14,0,0,0
|
||||
entry9a.o,0.015629%,8,0,8,0,0,0
|
||||
entry2.o,0.015629%,8,0,8,0,0,0
|
||||
entry8a.o,0.007814%,4,0,4,0,0,0
|
||||
entry5.o,0.007814%,4,0,4,0,0,0
|
||||
|
|
|
|
@ -1,30 +1,31 @@
|
|||
File_name,ram_percent,ram,flash,Code,RO_data,RW_data,ZI_data
|
||||
drv_uart.o,20.470589%,2436,1527,1470,57,0,2436
|
||||
bsp_history.o,14.151260%,1684,1473,1384,89,0,1684
|
||||
bsp_adc.o,11.092437%,1320,1228,1148,80,0,1320
|
||||
agile_led.o,10.252101%,1220,1384,1184,200,0,1220
|
||||
segger_rtt.o,10.151260%,1208,130,104,26,0,1208
|
||||
startup_ciu32l051.o,8.605042%,1024,220,28,192,0,1024
|
||||
bsp_button.o,5.747899%,684,1027,636,391,0,684
|
||||
ulog.o,4.949580%,589,2161,1950,211,0,589
|
||||
idle.o,3.495798%,416,270,248,22,0,416
|
||||
shell.o,2.361345%,281,1799,1768,31,0,281
|
||||
scheduler.o,2.352941%,280,502,484,18,0,280
|
||||
kservice.o,2.252101%,268,2168,1912,256,0,268
|
||||
object.o,1.243698%,148,1067,832,107,128,20
|
||||
mem.o,0.605042%,72,1880,1512,368,0,72
|
||||
perf_counter.o,0.470588%,56,310,298,4,8,48
|
||||
dev_pin.o,0.470588%,56,482,420,62,0,56
|
||||
console_be.o,0.403361%,48,90,86,4,0,48
|
||||
timer.o,0.168067%,20,1157,1002,155,0,20
|
||||
flexible_button.o,0.134454%,16,540,540,0,0,16
|
||||
thread.o,0.100840%,12,2144,1902,242,0,12
|
||||
irq.o,0.100840%,12,88,88,0,0,12
|
||||
cpuport.o,0.100840%,12,308,308,0,0,12
|
||||
bsp_io_dev.o,0.100840%,12,113,100,13,0,12
|
||||
bsp_rtc.o,0.050420%,6,699,600,99,0,6
|
||||
mc_p.l,0.033613%,4,879,742,133,4,0
|
||||
errno.o,0.033613%,4,12,8,0,4,0
|
||||
system_ciu32l051.o,0.033613%,4,200,164,32,4,0
|
||||
clock.o,0.033613%,4,54,54,0,0,4
|
||||
bsp_flash.o,0.033613%,4,3827,2880,947,0,4
|
||||
drv_uart.o,19.700214%,2208,2143,2070,73,0,2208
|
||||
bsp_history.o,15.024982%,1684,1481,1392,89,0,1684
|
||||
bsp_sensor.o,11.206282%,1256,987,970,17,0,1256
|
||||
agile_led.o,10.885082%,1220,1384,1184,200,0,1220
|
||||
segger_rtt.o,10.778016%,1208,130,104,26,0,1208
|
||||
startup_ciu32l051.o,9.136332%,1024,220,28,192,0,1024
|
||||
bsp_button.o,6.102784%,684,1027,636,391,0,684
|
||||
idle.o,3.711635%,416,270,248,22,0,416
|
||||
ulog.o,2.971092%,333,2145,1934,211,0,333
|
||||
scheduler.o,2.498216%,280,502,484,18,0,280
|
||||
shell.o,1.365096%,153,1799,1768,31,0,153
|
||||
object.o,1.320485%,148,1067,832,107,128,20
|
||||
kservice.o,1.249108%,140,2168,1912,256,0,140
|
||||
bsp_adc.o,0.999286%,112,376,300,76,0,112
|
||||
mem.o,0.642398%,72,1880,1512,368,0,72
|
||||
perf_counter.o,0.499643%,56,310,298,4,8,48
|
||||
dev_pin.o,0.499643%,56,482,420,62,0,56
|
||||
console_be.o,0.428266%,48,90,86,4,0,48
|
||||
timer.o,0.178444%,20,1157,1002,155,0,20
|
||||
flexible_button.o,0.142755%,16,540,540,0,0,16
|
||||
thread.o,0.107066%,12,2144,1902,242,0,12
|
||||
irq.o,0.107066%,12,88,88,0,0,12
|
||||
cpuport.o,0.107066%,12,308,308,0,0,12
|
||||
bsp_io_dev.o,0.107066%,12,113,100,13,0,12
|
||||
bsp_rtc.o,0.053533%,6,699,600,99,0,6
|
||||
mc_p.l,0.035689%,4,3767,3630,133,4,0
|
||||
errno.o,0.035689%,4,36,32,0,4,0
|
||||
system_ciu32l051.o,0.035689%,4,200,164,32,4,0
|
||||
clock.o,0.035689%,4,54,54,0,0,4
|
||||
bsp_flash.o,0.035689%,4,3827,2880,947,0,4
|
||||
|
|
|
BIN
MDK/board.o
BIN
MDK/board.o
Binary file not shown.
BIN
MDK/bsp_adc.o
BIN
MDK/bsp_adc.o
Binary file not shown.
BIN
MDK/bsp_button.o
BIN
MDK/bsp_button.o
Binary file not shown.
Binary file not shown.
|
@ -42,6 +42,4 @@
|
|||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h \
|
||||
..\RTOS\components\drivers\inc\dev_pin.h \
|
||||
..\RTOS\components\finsh\finsh_api.h ..\LIB\agile_led\agile_led.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
..\RTOS\components\finsh\finsh_api.h ..\LIB\agile_led\agile_led.h
|
||||
|
|
BIN
MDK/bsp_io_dev.o
BIN
MDK/bsp_io_dev.o
Binary file not shown.
|
@ -0,0 +1,52 @@
|
|||
./bsp_sensor.o: ..\bsp\src\bsp_sensor.c ..\bsp\inc\bsp_sensor.h \
|
||||
..\RTOS\inc\rtthread.h ..\RTOS\rtconfig.h \
|
||||
..\RTOS\components\finsh\finsh_config.h ..\RTOS\inc\rtdebug.h \
|
||||
..\RTOS\inc\rtdef.h ..\RTOS\inc\stdarg.h ..\RTOS\inc\rtservice.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_config.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rcc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_common.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stddef.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdbool.h \
|
||||
..\Peripheral\CMSIS\Device\ciu32l051.h \
|
||||
..\Peripheral\CMSIS\Core\core_cm0plus.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdint.h \
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_version.h \
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_compiler.h \
|
||||
D:\SXDT\Project\HED\4G\USART1_Interrupt\ -\ RT-Thread\Peripheral\CMSIS\Core\cmsis_armclang.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\arm_compat.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\arm_acle.h \
|
||||
..\Peripheral\CMSIS\Device\system_ciu32l051.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_adc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_aes.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_comp.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_crc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dbg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_dma.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_exti.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_flash.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_gpio.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_i2c.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_iwdg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lcd.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lptim.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_lpuart.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_pmu.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_rtc.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_spi.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_syscfg.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tamp.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_tim.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_trng.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_usart.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_vrefbuf.h \
|
||||
..\Peripheral\CIU32L051_Lib\Include\ciu32l051_std_wwdg.h \
|
||||
..\RTOS\components\drivers\inc\dev_pin.h \
|
||||
..\RTOS\components\finsh\finsh_api.h ..\drivers\inc\drv_uart.h \
|
||||
..\RTOS\inc\rthw.h ..\LIB\lwrb\lwrb.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\string.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdio.h ..\bsp\inc\bsp_voice.h \
|
||||
..\drivers\inc\drv_gpio.h ..\RTOS\components\drivers\inc\serial.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
Binary file not shown.
BIN
MDK/components.o
BIN
MDK/components.o
Binary file not shown.
BIN
MDK/drv_gpio.o
BIN
MDK/drv_gpio.o
Binary file not shown.
|
@ -46,5 +46,6 @@
|
|||
..\LIB\lwrb\lwrb.h C:\Keil_v5\ARM\ARMCLANG\include\string.h \
|
||||
..\RTOS\components\drivers\inc\serial.h ..\LIB\LwUtil\lwutil.h \
|
||||
C:\Keil_v5\ARM\ARMCLANG\include\stdlib.h ..\bsp\inc\bsp_history.h \
|
||||
..\drivers\inc\drv_gpio.h ..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\drivers\inc\drv_gpio.h ..\bsp\inc\bsp_sensor.h \
|
||||
..\RTOS\components\utilities\ulog\ulog.h \
|
||||
..\RTOS\components\utilities\ulog\ulog_def.h
|
||||
|
|
BIN
MDK/drv_uart.o
BIN
MDK/drv_uart.o
Binary file not shown.
BIN
MDK/kservice.o
BIN
MDK/kservice.o
Binary file not shown.
BIN
MDK/main.o
BIN
MDK/main.o
Binary file not shown.
BIN
MDK/shell.o
BIN
MDK/shell.o
Binary file not shown.
BIN
MDK/ulog.o
BIN
MDK/ulog.o
Binary file not shown.
|
@ -878,7 +878,7 @@ int finsh_system_init(void)
|
|||
shell = (struct finsh_shell *)rt_calloc(1, sizeof(struct finsh_shell));
|
||||
if (shell == RT_NULL)
|
||||
{
|
||||
rt_kprintf("no memory for shell\n");
|
||||
rt_kprintf("no memory for shell\n");//no memory for shell
|
||||
return -1;
|
||||
}
|
||||
tid = rt_thread_create(FINSH_THREAD_NAME,
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
#define ULOG_OUTPUT_LVL_D
|
||||
#define ULOG_OUTPUT_LVL 7
|
||||
#define ULOG_ASSERT_ENABLE
|
||||
#define ULOG_LINE_BUF_SIZE 256
|
||||
#define ULOG_LINE_BUF_SIZE 128
|
||||
/* log format */
|
||||
#define ULOG_USING_COLOR
|
||||
#define ULOG_OUTPUT_TIME
|
||||
|
@ -60,7 +60,7 @@
|
|||
// </c>
|
||||
// <o>the stack size of main thread<1-4086>
|
||||
// <i>Default: 512
|
||||
#define RT_MAIN_THREAD_STACK_SIZE 2048
|
||||
#define RT_MAIN_THREAD_STACK_SIZE 1024
|
||||
|
||||
// </h>
|
||||
|
||||
|
@ -139,7 +139,7 @@
|
|||
// <h>Memory Management Configuration
|
||||
// <c1>Dynamic Heap Management
|
||||
// <i>Dynamic Heap Management
|
||||
//#define RT_USING_HEAP
|
||||
#define RT_USING_HEAP
|
||||
// </c>
|
||||
// <c1>using small memory
|
||||
// <i>using small memory
|
||||
|
@ -159,7 +159,7 @@
|
|||
// <o>the buffer size of console <1-1024>
|
||||
// <i>the buffer size of console
|
||||
// <i>Default: 128 (128Byte)
|
||||
#define RT_CONSOLEBUF_SIZE 256
|
||||
#define RT_CONSOLEBUF_SIZE 128
|
||||
// </h>
|
||||
#include "finsh_config.h"
|
||||
#if defined(RT_USING_FINSH)
|
||||
|
|
|
@ -146,7 +146,7 @@ char rt_hw_console_getchar(void)
|
|||
{
|
||||
char ch = 0;
|
||||
|
||||
if (lwrb_get_full(&uart1_rx_rb) > 0)
|
||||
if (lwrb_get_full(&uart1_rx_rb) != RESET)
|
||||
{
|
||||
lwrb_read(&uart1_rx_rb, &ch, 1);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-09-05 15:04:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-14 09:10:51
|
||||
* @LastEditTime: 2024-09-14 16:22:29
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_adc.h
|
||||
* @Description:
|
||||
* @
|
||||
|
@ -47,8 +47,6 @@ extern rt_uint16_t adc_buffer[ADC_BUFFER_SIZE];
|
|||
// (4.7/19.7) * 10V = 2.39V, 2.39/3.3*4096 = 2966
|
||||
// #define VIN_ADC_LOW_THRESHOLD (uint16_t)2966 // 10V
|
||||
|
||||
// #define VIN_ADC_HIGH_THRESHOLD (3723) /* 模拟看门狗监控电压高阈值: 3723*3.3 / 4096 = 3V*/
|
||||
// #define VIN_ADC_LOW_THRESHOLD (1535) /* 模拟看门狗监控电压低阈值 1.236V */
|
||||
#define VIN_ADC_HIGH_THRESHOLD (0xFFFU * 7 /8) /* 模拟看门狗监控电压高阈值 2.625v*/
|
||||
#define VIN_ADC_LOW_THRESHOLD (0xFFFU * 2 /3) /* 模拟看门狗监控电压低阈值 2v*/
|
||||
|
||||
|
|
|
@ -1,50 +1,29 @@
|
|||
/***
|
||||
* @Author: mbw
|
||||
* @Date: 2024-09-05 14:00:04
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-14 15:14:48
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_io_dev.h
|
||||
* @Description:
|
||||
* @
|
||||
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
||||
*/
|
||||
#ifndef __BSP_IO_DEV_H__
|
||||
#define __BSP_IO_DEV_H__
|
||||
|
||||
#include "drv_gpio.h"
|
||||
#include "agile_led.h"
|
||||
|
||||
|
||||
|
||||
extern agile_led_t *led_r;
|
||||
extern agile_led_t *led_g;
|
||||
extern agile_led_t *led_y;
|
||||
extern agile_led_t *emv;//电磁阀
|
||||
extern agile_led_t *fj;//风机
|
||||
|
||||
|
||||
#define LED_ON(x) agile_led_on(led_##x)
|
||||
#define LED_OFF(x) agile_led_off(led_##x)
|
||||
#define LED_TOGGLE(x) agile_led_toggle(led_##x)
|
||||
|
||||
|
||||
// #define EMV_ACT do{\
|
||||
// rt_pin_write(EMV_LED_PIN, PIN_LOW);\
|
||||
// rt_thread_mdelay(100);\
|
||||
// rt_pin_write(EMV_LED_PIN, PIN_HIGH);\
|
||||
// rt_thread_mdelay(100);}while(0)\
|
||||
|
||||
// #define FJ_ON do{rt_pin_write(FJ_LED_PIN, PIN_HIGH);}while(0)
|
||||
// #define FJ_OFF do{rt_pin_write(FJ_LED_PIN, PIN_LOW);}while(0)
|
||||
|
||||
|
||||
//#define EMV_ON(x) agile_led_on(x)
|
||||
//#define FJ_ON(x) agile_led_on(x)
|
||||
|
||||
//电磁阀控制采用N沟道MOS管,高电平导通
|
||||
|
||||
//#define EMV_OFF(x) agile_led_off(x)
|
||||
//#define FJ_OFF(x) agile_led_off(x)
|
||||
|
||||
#define LED_START(x) agile_led_start(led_##x)
|
||||
//#define EMV_START agile_led_start(emv)
|
||||
|
||||
|
||||
#define DEV_CTRL(x, light_mode, loop_cnt) do \
|
||||
{ \
|
||||
agile_led_set_light_mode(x, light_mode, loop_cnt); \
|
||||
agile_led_start(x); \
|
||||
} while (0U)
|
||||
|
||||
|
||||
#define LED_STOP(x) do \
|
||||
|
|
|
@ -2,67 +2,66 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-09-05 16:04:44
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-13 15:09:10
|
||||
* @LastEditTime: 2024-09-14 13:59:01
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\inc\bsp_sensor.h
|
||||
* @Description:
|
||||
* @
|
||||
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
||||
*/
|
||||
// #ifndef __BSP_UART_H__
|
||||
// #define __BSP_UART_H__
|
||||
#ifndef __BSP_UART_H__
|
||||
#define __BSP_UART_H__
|
||||
|
||||
// #include "rtthread.h"
|
||||
#include "rtthread.h"
|
||||
|
||||
// typedef enum
|
||||
// {
|
||||
// kUsartRxStart,
|
||||
// kUsartRxComplate,
|
||||
// } Te_State_e;
|
||||
typedef enum
|
||||
{
|
||||
kUsartRxStart,
|
||||
kUsartRxComplate,
|
||||
} Te_State_e;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Te_State_e usart_rx_state;
|
||||
} Ts_StateStruct;
|
||||
|
||||
// QX
|
||||
typedef struct
|
||||
{
|
||||
char concentration[16]; // 浓度
|
||||
char temperature[16]; // 温度
|
||||
char sensor_temperature[16]; // 激光器温度
|
||||
char signal_strength[16]; // 信号强度
|
||||
char mu_factor[16]; // 放大系数
|
||||
char sensor_status[4]; // 传感器状态
|
||||
char checksum[4]; // 校验
|
||||
|
||||
} TsSensoStrData;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
double concentration; // 浓度
|
||||
double temperature; // 温度
|
||||
double sensor_temperature; // 激光器温度
|
||||
double signal_strength; // 信号强度
|
||||
double mu_factor; // 放大系数 GAIN
|
||||
rt_uint8_t sensor_status; // 传感器状态
|
||||
rt_uint8_t checksum; // 校验
|
||||
|
||||
} TsSensorData;
|
||||
|
||||
// typedef struct
|
||||
// {
|
||||
// Te_State_e usart_rx_state;
|
||||
// } Ts_StateStruct;
|
||||
|
||||
// // QX
|
||||
// typedef struct
|
||||
// {
|
||||
// char concentration[16]; // 浓度
|
||||
// char temperature[16]; // 温度
|
||||
// char sensor_temperature[16]; // 激光器温度
|
||||
// char signal_strength[16]; // 信号强度
|
||||
// char mu_factor[16]; // 放大系数
|
||||
// char sensor_status[4]; // 传感器状态
|
||||
// char checksum[4]; // 校验
|
||||
|
||||
// } TsSensoStrData;
|
||||
|
||||
// typedef struct
|
||||
// {
|
||||
|
||||
// double concentration; // 浓度
|
||||
// double temperature; // 温度
|
||||
// double sensor_temperature; // 激光器温度
|
||||
// double signal_strength; // 信号强度
|
||||
// double mu_factor; // 放大系数 GAIN
|
||||
// rt_uint8_t sensor_status; // 传感器状态
|
||||
// rt_uint8_t checksum; // 校验
|
||||
|
||||
//{
|
||||
// float concentration;//浓度
|
||||
// float temperature;//温度
|
||||
// float sensor_temperature;//激光器温度
|
||||
// float signal_strength;//信号强度
|
||||
// float mu_factor;//放大系数
|
||||
// int sensor_status;//传感器状态
|
||||
// int checksum;//校验
|
||||
//
|
||||
// } TsSensorData;
|
||||
|
||||
// // typedef struct
|
||||
// //{
|
||||
// // float concentration;//浓度
|
||||
// // float temperature;//温度
|
||||
// // float sensor_temperature;//激光器温度
|
||||
// // float signal_strength;//信号强度
|
||||
// // float mu_factor;//放大系数
|
||||
// // int sensor_status;//传感器状态
|
||||
// // int checksum;//校验
|
||||
// //
|
||||
// // } TsSensorData;
|
||||
|
||||
// extern TsSensorData SensorData;
|
||||
// extern struct rt_semaphore uart4_rx_sem;
|
||||
|
||||
// #endif //!__BSP_UART_H__
|
||||
extern TsSensorData SensorData;
|
||||
extern struct rt_semaphore sensor_rx_sem;
|
||||
#endif //!__BSP_UART_H__
|
||||
|
|
|
@ -179,7 +179,7 @@ void _Adc_init(void)
|
|||
std_adc_analog_watchdog_monit_channel(ADC_AWDG_CHANNEL_3); /* 看门狗监控通道选择通道 */
|
||||
std_adc_analog_watchdog_thresholds_config(VIN_ADC_HIGH_THRESHOLD, VIN_ADC_LOW_THRESHOLD); /* 配置看门狗监控阈值 */
|
||||
|
||||
std_adc_dma_enable();/* 使能DMA */
|
||||
// std_adc_dma_enable();/* 使能DMA */
|
||||
|
||||
std_adc_wait_mode_enable(); /* 配置wait模式,避免数据未及时读取,转换溢出 */
|
||||
/* ADC参考电压源选择 */
|
||||
|
@ -275,7 +275,7 @@ int BSP_Vin_Detection_Init(void)
|
|||
return RT_EOK;
|
||||
}
|
||||
#ifdef RT_USING_COMPONENTS_INIT
|
||||
INIT_APP_EXPORT(BSP_Vin_Detection_Init);
|
||||
// INIT_APP_EXPORT(BSP_Vin_Detection_Init);
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -305,15 +305,3 @@ void ADC_COMP_IRQHandler(void)
|
|||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
// /**
|
||||
// * @brief DMA通道0中断服务函数
|
||||
// * @retval 无
|
||||
// */
|
||||
// void DMA_Channel0_IRQHandler(void)
|
||||
// {
|
||||
// if((std_dma_get_interrupt_enable(DMA_CHANNEL_0, DMA_INTERRUPT_TF)) && (std_dma_get_flag(DMA_FLAG_TF0)))
|
||||
// {
|
||||
// /* 清除DMA通道转换完成标志 */
|
||||
// std_dma_clear_flag(DMA_FLAG_TF0);
|
||||
// }
|
||||
// }
|
||||
|
|
|
@ -295,8 +295,9 @@ static void hr_send_thread_entry(void *param)
|
|||
static void Hr_Thread_Entry(void *param)
|
||||
{
|
||||
rt_uint8_t buf[32] = {0};
|
||||
// BSP_Flash_Init();
|
||||
// rt_thread_mdelay(100);
|
||||
|
||||
LPUART1_Init(BAUD_RATE_4800, LPUART_PARITY_NONE);
|
||||
|
||||
while (1)
|
||||
{
|
||||
rt_sem_take(hr_rx_sem, RT_WAITING_FOREVER); // 等待信号量
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-09-05 14:00:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-05 15:00:28
|
||||
* @LastEditTime: 2024-09-14 15:15:09
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\bsp\src\bsp_io_dev.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -12,10 +12,6 @@
|
|||
#include "rtthread.h"
|
||||
#include "dev_pin.h"
|
||||
|
||||
#define LOG_TAG "bsp_led"
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
#include <ulog.h>
|
||||
|
||||
agile_led_t *led_r = RT_NULL;
|
||||
agile_led_t *led_g = RT_NULL;
|
||||
agile_led_t *led_y = RT_NULL;
|
||||
|
|
|
@ -1,84 +1,77 @@
|
|||
// #include <bsp_sensor.h>
|
||||
// #include "drv_uart.h"
|
||||
// #include <rtdevice.h>
|
||||
// #include <rtthread.h>
|
||||
// #include "stdlib.h"
|
||||
// #include "stdio.h"
|
||||
// #include "user_sys.h"
|
||||
// #include "bsp_voice.h"
|
||||
#include <bsp_sensor.h>
|
||||
#include "drv_uart.h"
|
||||
#include <rtthread.h>
|
||||
#include "stdlib.h"
|
||||
#include "stdio.h"
|
||||
#include "bsp_voice.h"
|
||||
#include "drv_gpio.h"
|
||||
#include "serial.h"
|
||||
|
||||
// #define LOG_TAG "bsp_uart"
|
||||
// #define LOG_LVL LOG_LVL_DBG
|
||||
// #include <ulog.h>
|
||||
#define LOG_TAG "bsp_uart"
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
#include <ulog.h>
|
||||
|
||||
// #define SENSOR_UART "uart4"
|
||||
#define SENSOR_RX_BUF_LEN 64
|
||||
#define THREAD_STACK_SIZE 1024
|
||||
|
||||
// #define SENSOR_RX_BUF_LEN 64
|
||||
// #define THREAD_STACK_SIZE 2048
|
||||
#define THREAD_PRIORITY 25
|
||||
#define THREAD_TIMESLICE 20
|
||||
|
||||
// #define THREAD1_PRIORITY 25
|
||||
// #define THREAD2_PRIORITY 24
|
||||
// #define THREAD_TIMESLICE 5
|
||||
TsSensorData SensorData = {0};
|
||||
|
||||
// TsSensorData SensorData = {0};
|
||||
// rt_uint16_t uart4_rx_cnt = 0;
|
||||
// Ts_StateStruct Usart4_State;
|
||||
/* 用于接收消息的信号量 */
|
||||
struct rt_semaphore sensor_rx_sem;
|
||||
|
||||
// /* 用于接收消息的信号量 */
|
||||
// struct rt_semaphore uart4_rx_sem;
|
||||
static struct rt_thread sensor_thread = {0};
|
||||
|
||||
// static rt_device_t rt_sensor_device;
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
static rt_uint8_t sensor_thread_stack[THREAD_STACK_SIZE] = {0};
|
||||
|
||||
// static struct rt_thread sensor_thread1 = {0};
|
||||
// 对字符串进行异或校验
|
||||
static unsigned char BSP_Xor_Checksum(char *str, int len)
|
||||
{
|
||||
unsigned char xorvalue = 0;
|
||||
|
||||
// ALIGN(RT_ALIGN_SIZE)
|
||||
// static rt_uint8_t sensor_thread1_stack[THREAD_STACK_SIZE] = {0};
|
||||
if (str == RT_NULL || len < 2)
|
||||
{
|
||||
// 处理错误或返回
|
||||
return 0; // 或者选择抛出异常
|
||||
}
|
||||
for (int i = 0; i < len - 4; i++) // 校验值前面的空格要,
|
||||
{
|
||||
xorvalue ^= str[i];
|
||||
}
|
||||
|
||||
// // 对字符串进行异或校验
|
||||
// static unsigned char BSP_Xor_Checksum(char *str, int len)
|
||||
// {
|
||||
// unsigned char xorvalue = 0;
|
||||
return xorvalue;
|
||||
}
|
||||
|
||||
// if (str == RT_NULL || len < 2)
|
||||
// {
|
||||
// // 处理错误或返回
|
||||
// return 0; // 或者选择抛出异常
|
||||
// }
|
||||
// for (int i = 0; i < len - 4; i++) // 校验值前面的空格要,
|
||||
// {
|
||||
// xorvalue ^= str[i];
|
||||
// }
|
||||
// 从字符串中提取传感器数据并存储到结构体中
|
||||
TsSensorData Extract_SensorData(const char *str)
|
||||
{
|
||||
TsSensoStrData SensoStrData = {0};
|
||||
TsSensorData data = {0};
|
||||
// A+000.00 +31.1 0657.80 +18.1 B+008.0 00 12
|
||||
if (sscanf(str, "A+%6s %6s %8s %6s B+%6s %2s %2s",
|
||||
SensoStrData.concentration, SensoStrData.temperature, SensoStrData.sensor_temperature, SensoStrData.signal_strength,
|
||||
SensoStrData.mu_factor, SensoStrData.sensor_status, SensoStrData.checksum) == 7)
|
||||
{
|
||||
data.concentration = atof(SensoStrData.concentration);
|
||||
data.temperature = atof(SensoStrData.temperature);
|
||||
data.sensor_temperature = atof(SensoStrData.sensor_temperature);
|
||||
data.signal_strength = atof(SensoStrData.signal_strength);
|
||||
data.mu_factor = atof(SensoStrData.mu_factor);
|
||||
data.sensor_status = (rt_uint8_t)strtol(SensoStrData.sensor_status, NULL, 16);
|
||||
data.checksum = (rt_uint8_t)strtol(SensoStrData.checksum, NULL, 16);
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_E("Extract_SensorData failed...");
|
||||
}
|
||||
|
||||
// return xorvalue;
|
||||
// }
|
||||
return data;
|
||||
}
|
||||
|
||||
// // 从字符串中提取传感器数据并存储到结构体中
|
||||
// TsSensorData Extract_SensorData(const char *str)
|
||||
// {
|
||||
// TsSensoStrData SensoStrData = {0};
|
||||
// TsSensorData data = {0};
|
||||
// // A+000.00 +31.1 0657.80 +18.1 B+008.0 00 12
|
||||
// if (sscanf(str, "A+%6s %6s %8s %6s B+%6s %2s %2s",
|
||||
// SensoStrData.concentration, SensoStrData.temperature, SensoStrData.sensor_temperature, SensoStrData.signal_strength,
|
||||
// SensoStrData.mu_factor, SensoStrData.sensor_status, SensoStrData.checksum) == 7)
|
||||
// {
|
||||
// data.concentration = (float)atof(SensoStrData.concentration);
|
||||
// data.temperature = (float)atof(SensoStrData.temperature);
|
||||
// data.sensor_temperature = (float)atof(SensoStrData.sensor_temperature);
|
||||
// data.signal_strength = (float)atof(SensoStrData.signal_strength);
|
||||
// data.mu_factor = (float)atof(SensoStrData.mu_factor);
|
||||
// data.sensor_status = (rt_uint8_t)strtol(SensoStrData.sensor_status, NULL, 16);
|
||||
// data.checksum = (rt_uint8_t)strtol(SensoStrData.checksum, NULL, 16);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// LOG_E("Extract_SensorData failed...");
|
||||
// }
|
||||
|
||||
// return data;
|
||||
// }
|
||||
|
||||
// // 打印存储传感器数据的结构体
|
||||
// 打印存储传感器数据的结构体
|
||||
// void Print_SensorData(TsSensorData data)
|
||||
// {
|
||||
// // A+000.00 +31.1 0657.80 +18.1 B+008.0 00 12
|
||||
|
@ -87,142 +80,133 @@
|
|||
// }
|
||||
// MSH_CMD_EXPORT(Print_SensorData, data);
|
||||
|
||||
// /* 接收数据回调函数 */
|
||||
// static rt_err_t Uart4_Rec_Cb(rt_device_t dev, rt_size_t size)
|
||||
// {
|
||||
// rt_sem_release(&uart4_rx_sem); // 空闲中断时释放信号量
|
||||
// return RT_EOK;
|
||||
// }
|
||||
int Update_Sensor_Data(void)
|
||||
{
|
||||
uint16_t read_length = 0;
|
||||
unsigned char xor_value = 0;
|
||||
int check_value = 0;
|
||||
char laser_sensor_rx_data[64] = {0};
|
||||
|
||||
// int Update_Sensor_Data(void)
|
||||
// {
|
||||
// uint16_t read_length = 0;
|
||||
// unsigned char xor_value = 0;
|
||||
// int check_value = 0;
|
||||
// char laser_sensor_rx_data[64] = {0};
|
||||
read_length = lwrb_get_full(&uart2_rx_rb);
|
||||
|
||||
// read_length = lwrb_get_full(&uart4_rx_rb);
|
||||
// uart4_rx_cnt = 0;
|
||||
// if (read_length < 35)
|
||||
// {
|
||||
// lwrb_free(&uart4_rx_rb);
|
||||
// return -1;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// lwrb_read(&uart4_rx_rb, laser_sensor_rx_data, read_length);
|
||||
// xor_value = BSP_Xor_Checksum(laser_sensor_rx_data, read_length); // 对数据进行异或校验
|
||||
if (read_length < 35)
|
||||
{
|
||||
lwrb_free(&uart2_rx_rb);
|
||||
return -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
lwrb_read(&uart2_rx_rb, laser_sensor_rx_data, read_length);
|
||||
xor_value = BSP_Xor_Checksum(laser_sensor_rx_data, read_length); // 对数据进行异或校验
|
||||
|
||||
// sscanf((&laser_sensor_rx_data[0] + read_length - 4), "%02X", &check_value); // 从字符串中获取校验码
|
||||
// //
|
||||
// if (xor_value == check_value)
|
||||
// {
|
||||
// SensorData = Extract_SensorData(laser_sensor_rx_data);
|
||||
// // LOG_I("%s", laser_sensor_rx_data);//打印接收到的字符串
|
||||
// // Print_SensorData(SensorData);
|
||||
// return 0;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// LOG_E("check error\r\n");
|
||||
// LOG_I("%s", laser_sensor_rx_data); // 打印接收到的字符串
|
||||
// LOG_E("xor_value:%#X, check_value:%#X\r\n", xor_value, check_value);
|
||||
sscanf((&laser_sensor_rx_data[0] + read_length - 4), "%02X", &check_value); // 从字符串中获取校验码
|
||||
//
|
||||
if (xor_value == check_value)
|
||||
{
|
||||
SensorData = Extract_SensorData(laser_sensor_rx_data);
|
||||
LOG_I("%s", laser_sensor_rx_data); // 打印接收到的字符串
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_E("check error\r\n");
|
||||
LOG_I("%s", laser_sensor_rx_data); // 打印接收到的字符串
|
||||
LOG_E("xor_value:%#X, check_value:%#X\r\n", xor_value, check_value);
|
||||
|
||||
// return -1;
|
||||
// }
|
||||
// }
|
||||
// return 0;
|
||||
// }
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// static int Sensor_Power_Switch(void)
|
||||
// {
|
||||
// rt_pin_mode(SENSOR_POWER_PIN, PIN_MODE_OUTPUT);
|
||||
// rt_pin_write(SENSOR_POWER_PIN, PIN_HIGH);
|
||||
int Sensor_Power_Switch(void)
|
||||
{
|
||||
rt_pin_mode(SENSOR_POWER_PIN, PIN_MODE_OUTPUT);
|
||||
rt_pin_write(SENSOR_POWER_PIN, PIN_HIGH);
|
||||
|
||||
// return RT_EOK;
|
||||
// }
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_PREV_EXPORT(Sensor_Power_Switch);
|
||||
|
||||
// static void Check_Concentration(rt_base_t *alarm_active)
|
||||
// {
|
||||
// if (((SensorData.concentration < 2.5) && (SensorData.concentration >= 0.5)) && !(*alarm_active)) // 低浓度报警
|
||||
// {
|
||||
// Send_Laser_Alarm_Event(kAlarmEvent);
|
||||
// Send_Voice_Event(kLowConcentrationVoice);
|
||||
// *alarm_active = RT_TRUE; // 更新报警状态为激活
|
||||
// }
|
||||
// else if ((SensorData.concentration > 2.5) && !(*alarm_active)) // 高浓度报警
|
||||
// {
|
||||
// Send_Laser_Alarm_Event(kAlarmEvent); // 报警事件
|
||||
// Send_Voice_Event(kHighConcentrationVoice);
|
||||
// *alarm_active = RT_TRUE; // 更新报警状态为激活
|
||||
// }
|
||||
// else if (SensorData.concentration < 0.5 && *alarm_active)
|
||||
// {
|
||||
// Send_Laser_Alarm_Event(kAlarmRcyEvent);
|
||||
// *alarm_active = RT_FALSE; // 更新报警状态为未激活
|
||||
// }
|
||||
// }
|
||||
|
||||
// static void Check_Fault(rt_base_t *fail_code)
|
||||
// {
|
||||
// if (SensorData.sensor_status > 0 && !(*fail_code))
|
||||
// {
|
||||
// Send_Laser_Alarm_Event(kFaultEvent);
|
||||
// *fail_code = RT_TRUE; // 故障状态激活
|
||||
// }
|
||||
// else if (SensorData.sensor_status == 0 && *fail_code)
|
||||
// {
|
||||
// Send_Laser_Alarm_Event(kFaultRcyEvent);
|
||||
// *fail_code = RT_FALSE; // 故障恢复状态
|
||||
// }
|
||||
// }
|
||||
void Check_Concentration(rt_base_t *alarm_active)
|
||||
{
|
||||
if (((SensorData.concentration < 2.5) && (SensorData.concentration >= 0.5)) && !(*alarm_active)) // 低浓度报警
|
||||
{
|
||||
// Send_Laser_Alarm_Event(kAlarmEvent);
|
||||
// Send_Voice_Event(kLowConcentrationVoice);
|
||||
*alarm_active = RT_TRUE; // 更新报警状态为激活
|
||||
}
|
||||
else if ((SensorData.concentration > 2.5) && !(*alarm_active)) // 高浓度报警
|
||||
{
|
||||
// Send_Laser_Alarm_Event(kAlarmEvent); // 报警事件
|
||||
// Send_Voice_Event(kHighConcentrationVoice);
|
||||
*alarm_active = RT_TRUE; // 更新报警状态为激活
|
||||
}
|
||||
else if (SensorData.concentration < 0.5 && *alarm_active)
|
||||
{
|
||||
// Send_Laser_Alarm_Event(kAlarmRcyEvent);
|
||||
*alarm_active = RT_FALSE; // 更新报警状态为未激活
|
||||
}
|
||||
}
|
||||
|
||||
// static void Sensor_Thread_Entry(void *parameter)
|
||||
// {
|
||||
// rt_base_t alarm_active = RT_FALSE; // 初始时报警状态为未激活
|
||||
// rt_base_t fail_code = RT_FALSE; // 初始时故障状态为0
|
||||
void Check_Fault(rt_base_t *fail_code)
|
||||
{
|
||||
if (SensorData.sensor_status > 0 && !(*fail_code))
|
||||
{
|
||||
// Send_Laser_Alarm_Event(kFaultEvent);
|
||||
*fail_code = RT_TRUE; // 故障状态激活
|
||||
}
|
||||
else if (SensorData.sensor_status == 0 && *fail_code)
|
||||
{
|
||||
// Send_Laser_Alarm_Event(kFaultRcyEvent);
|
||||
*fail_code = RT_FALSE; // 故障恢复状态
|
||||
}
|
||||
}
|
||||
|
||||
// LOG_I("Sensor_Thread_Entry\r\n");
|
||||
// Sensor_Power_Switch();
|
||||
// rt_thread_mdelay(3000);
|
||||
static void Sensor_Thread_Entry(void *parameter)
|
||||
{
|
||||
|
||||
// while (1)
|
||||
// {
|
||||
// rt_sem_take(&uart4_rx_sem, RT_WAITING_FOREVER);
|
||||
// UART4_RxCheck();
|
||||
// Update_Sensor_Data();
|
||||
// if (SensorData.sensor_status > 0 || SensorData.concentration > 0)
|
||||
// {
|
||||
// Print_SensorData(SensorData);
|
||||
// }
|
||||
// Check_Concentration(&alarm_active); // 检查浓度
|
||||
// Check_Fault(&fail_code); // 检查故障状态
|
||||
// }
|
||||
// }
|
||||
rt_base_t alarm_active = RT_FALSE; // 初始时报警状态为未激活
|
||||
rt_base_t fail_code = RT_FALSE; // 初始时故障状态为0
|
||||
|
||||
// static int Sensor_Init(void)
|
||||
// {
|
||||
LOG_I("Sensor_Thread_Entry\r\n");
|
||||
UART2_Init(BAUD_RATE_9600, USART_PARITY_NONE);
|
||||
while (1)
|
||||
{
|
||||
rt_sem_take(&sensor_rx_sem, RT_WAITING_FOREVER);
|
||||
Update_Sensor_Data();
|
||||
Check_Concentration(&alarm_active); // 检查浓度
|
||||
Check_Fault(&fail_code); // 检查故障状态
|
||||
}
|
||||
}
|
||||
|
||||
// /* 静态初始化线程 1*/
|
||||
// ret = rt_thread_init(&sensor_thread1, // 该线程用于数据解析
|
||||
// "uart4_rx",
|
||||
// Sensor_Thread_Entry,
|
||||
// RT_NULL,
|
||||
// &sensor_thread1_stack[0],
|
||||
// sizeof(sensor_thread1_stack),
|
||||
// THREAD1_PRIORITY,
|
||||
// THREAD_TIMESLICE);
|
||||
// /* 创建成功则启动线程 */
|
||||
// if (ret == RT_EOK)
|
||||
// {
|
||||
// LOG_I("rt_thread_startup sensor_thread1");
|
||||
// rt_thread_startup(&sensor_thread1);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// LOG_I("rt_thread_init sensor_thread Failed...");
|
||||
// return ret;
|
||||
// }
|
||||
// return ret;
|
||||
// }
|
||||
// INIT_DEVICE_EXPORT(Sensor_Init);
|
||||
int Sensor_Init(void)
|
||||
{
|
||||
rt_err_t ret = RT_EOK;
|
||||
|
||||
/* 初始化信号量 */
|
||||
rt_sem_init(&sensor_rx_sem, "sensor_rx_sem", 0, RT_IPC_FLAG_FIFO);
|
||||
|
||||
/* 静态初始化线程 1*/
|
||||
ret = rt_thread_init(&sensor_thread, // 该线程用于数据解析
|
||||
"sensor_rx",
|
||||
Sensor_Thread_Entry,
|
||||
RT_NULL,
|
||||
&sensor_thread_stack[0],
|
||||
sizeof(sensor_thread_stack),
|
||||
THREAD_PRIORITY,
|
||||
THREAD_TIMESLICE);
|
||||
/* 创建成功则启动线程 */
|
||||
if (ret == RT_EOK)
|
||||
{
|
||||
LOG_I("rt_thread_startup sensor_thread");
|
||||
rt_thread_startup(&sensor_thread);
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG_E("rt_thread_init sensor_thread Failed...");
|
||||
return ret;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
INIT_APP_EXPORT(Sensor_Init);
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
/***
|
||||
* @Author: mbw
|
||||
* @Date: 2024-08-21 09:04:32
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-14 13:34:47
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_gpio.h
|
||||
* @Description:
|
||||
* @
|
||||
* @Copyright (c) 2024 by ${git_name_email}, All Rights Reserved.
|
||||
*/
|
||||
#ifndef __DRV_GPIO_H__
|
||||
#define __DRV_GPIO_H__
|
||||
|
||||
|
@ -12,6 +22,7 @@
|
|||
|
||||
#define __CIU32_PIN(index, gpio, gpio_index) {index, GPIO##gpio, GPIO_PIN_##gpio_index}
|
||||
|
||||
#define SENSOR_POWER_PIN GET_PIN(A, 7)
|
||||
/*uart1*/
|
||||
#define UART1_TX_GPIO_PIN GPIO_PIN_11
|
||||
#define UART1_TX_GPIO_PORT GPIOA
|
||||
|
@ -19,6 +30,13 @@
|
|||
#define UART1_RX_GPIO_PIN GPIO_PIN_12
|
||||
#define UART1_RX_GPIO_PORT GPIOA
|
||||
|
||||
/*uart2*/
|
||||
#define UART2_TX_GPIO_PIN GPIO_PIN_6
|
||||
#define UART2_TX_GPIO_PORT GPIOB
|
||||
|
||||
#define UART2_RX_GPIO_PIN GPIO_PIN_7
|
||||
#define UART2_RX_GPIO_PORT GPIOB
|
||||
|
||||
/* LPUART1*/
|
||||
#define LPUART1_TX_GPIO_PIN GPIO_PIN_11
|
||||
#define LPUART1_TX_GPIO_PORT GPIOB
|
||||
|
@ -27,23 +45,23 @@
|
|||
#define LPUART1_RX_GPIO_PORT GPIOB
|
||||
|
||||
/*voice 引脚*/
|
||||
#define VOICE_CLK_PIN GET_PIN(C, 9)
|
||||
#define VOICE_DATA_PIN GET_PIN(A, 8)
|
||||
#define VOICE_BUSY_PIN GET_PIN(C, 8)
|
||||
#define VOICE_CLK_PIN GET_PIN(C, 5)
|
||||
#define VOICE_DATA_PIN GET_PIN(C, 6)
|
||||
#define VOICE_BUSY_PIN GET_PIN(C, 7)
|
||||
|
||||
/*按键*/
|
||||
#define BUTTON_0 GET_PIN(C, 11)
|
||||
#define BUTTON_0 GET_PIN(A, 13)
|
||||
|
||||
/*LED*/
|
||||
#define RED_LED_PIN GET_PIN(B, 4)
|
||||
#define GREEN_LED_PIN GET_PIN(B, 8)
|
||||
#define YELLOW_LED_PIN GET_PIN(B, 6)
|
||||
#define RED_LED_PIN GET_PIN(B, 3)
|
||||
#define GREEN_LED_PIN GET_PIN(B, 4)
|
||||
#define YELLOW_LED_PIN GET_PIN(B, 5)
|
||||
|
||||
/*联动设备*/
|
||||
#define EMV_LED_PIN GET_PIN(B, 0)
|
||||
#define FJ_LED_PIN GET_PIN(B, 1)
|
||||
|
||||
struct pin_index
|
||||
struct pin_index
|
||||
{
|
||||
int index;
|
||||
GPIO_t *gpio;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-20 15:51:16
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-13 15:09:42
|
||||
* @LastEditTime: 2024-09-14 13:55:42
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\drivers\inc\drv_uart.h
|
||||
* @Description:
|
||||
* @
|
||||
|
@ -44,9 +44,9 @@ typedef enum
|
|||
|
||||
|
||||
/*------------------------------------------defines---------------------------------------------*/
|
||||
#define UART1_DMA_RX_THREAD_STACK_SIZE (1024+512)
|
||||
#define UART1_DMA_RX_THREAD_PRIORITY (20)
|
||||
#define UART1_DMA_RX_THREAD_TIMESLICE (5)
|
||||
#define UART1_RX_THREAD_STACK_SIZE (1024)
|
||||
#define UART1_RX_THREAD_PRIORITY (20)
|
||||
#define UART1_RX_THREAD_TIMESLICE (5)
|
||||
|
||||
#define UART1_RX_BUFFER_LENGTH (128U)
|
||||
#define UART1_RX_RB_LENGTH (128U)
|
||||
|
@ -61,6 +61,14 @@ typedef enum
|
|||
rt_uint32_t UART1_Write(const void* data, size_t len);
|
||||
rt_uint32_t UART1_SendString(const char* str);
|
||||
|
||||
/*-------------------------------------------UART2-------------------------------------------------*/
|
||||
#define UART2_RX_THREAD_STACK_SIZE (1024)
|
||||
#define UART2_RX_THREAD_PRIORITY (10)
|
||||
#define UART2_RX_THREAD_TIMESLICE (5)
|
||||
|
||||
#define UART2_RX_BUFFER_LENGTH (64U)
|
||||
#define UART2_RX_RB_LENGTH (128U)
|
||||
|
||||
/*-------------------------------------------LPUART1-------------------------------------------------*/
|
||||
#define LPUART1_RX_THREAD_STACK_SIZE (1024)
|
||||
#define LPUART1_RX_THREAD_PRIORITY (10)
|
||||
|
@ -72,6 +80,7 @@ rt_uint32_t UART1_SendString(const char* str);
|
|||
|
||||
extern lwrb_t lpuart1_rx_rb;
|
||||
extern lwrb_t uart1_rx_rb;
|
||||
extern lwrb_t uart2_rx_rb;
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
extern rt_sem_t uart1_rx_ok_sem;
|
||||
#endif
|
||||
|
@ -79,10 +88,14 @@ extern rt_sem_t uart1_rx_ok_sem;
|
|||
rt_uint32_t LPUART1_Write(const void* data, size_t len);
|
||||
rt_uint32_t LPUART1_SendString(const char* str);
|
||||
|
||||
|
||||
/*-------------------------------------------functions------------------------------------------*/
|
||||
|
||||
int rt_hw_usart_init(void);
|
||||
|
||||
void UART2_Init(uint32_t baudrate, uint32_t par);
|
||||
void LPUART1_Init(uint32_t baudrate, uint32_t par);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "lwutil.h"
|
||||
#include "bsp_history.h"
|
||||
#include "drv_gpio.h"
|
||||
|
||||
#include "bsp_sensor.h"
|
||||
|
||||
#define LOG_TAG "drv_uart"
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
|
@ -33,13 +33,11 @@
|
|||
/*-------------------------------------用户自定义-----------------*/
|
||||
|
||||
/* 定时器的控制块 */
|
||||
static rt_timer_t uart2_rx_timer;
|
||||
static rt_timer_t lpuart1_rx_timer;
|
||||
|
||||
// /* 完成量控制块 */
|
||||
// static struct rt_completion completion;
|
||||
|
||||
|
||||
rt_sem_t uart1_rx_check_sem;
|
||||
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
rt_sem_t uart1_rx_ok_sem = RT_NULL;
|
||||
#endif
|
||||
|
@ -58,23 +56,19 @@ uint8_t lpuart1_tx_rb_data[LPUART1_TX_RB_LENGTH];
|
|||
|
||||
/*Ring buffer instance for RX data*/
|
||||
lwrb_t uart1_rx_rb;
|
||||
lwrb_t uart2_rx_rb;
|
||||
lwrb_t lpuart1_rx_rb;
|
||||
|
||||
/*Ring buffer data array for RX DMA*/
|
||||
uint8_t uart1_rx_rb_data[UART1_RX_RB_LENGTH];
|
||||
uint8_t uart2_rx_rb_data[UART2_RX_RB_LENGTH];
|
||||
uint8_t lpuart1_rx_rb_data[LPUART1_RX_RB_LENGTH];
|
||||
|
||||
volatile size_t _uart1_tx_dma_current_len;
|
||||
volatile size_t _lpuart1_tx_dma_current_len;
|
||||
|
||||
ALIGN(RT_ALIGN_SIZE)
|
||||
static char uart1_rx_thread_stack[UART1_DMA_RX_THREAD_STACK_SIZE];
|
||||
static char uart1_rx_thread_stack[UART1_RX_THREAD_STACK_SIZE];
|
||||
static struct rt_thread uart1_rx_thread;
|
||||
|
||||
// ALIGN(RT_ALIGN_SIZE)
|
||||
// static char lpuart1_rx_thread_stack[LPUART1_RX_THREAD_STACK_SIZE];
|
||||
// static struct rt_thread lpuart1_rx_thread;
|
||||
|
||||
/*-----------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
|
@ -118,7 +112,7 @@ void Uart1_Dma_Send_Data(uint32_t *source, uint32_t number)
|
|||
* @brief DMA通道初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void Uart1_Dma_Init(void)
|
||||
void __Uart1_Dma_Init(void)
|
||||
{
|
||||
std_dma_init_t dma_init_param = {0};
|
||||
|
||||
|
@ -176,7 +170,7 @@ void Uart1_Dma_Init(void)
|
|||
* @brief GPIO初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void Uart1_Gpio_Init(void)
|
||||
void __Uart1_Gpio_Init(void)
|
||||
{
|
||||
/* GPIO外设时钟使能 */
|
||||
std_rcc_gpio_clk_enable(RCC_PERIPH_CLK_GPIOA);
|
||||
|
@ -202,7 +196,39 @@ void Uart1_Gpio_Init(void)
|
|||
* @brief GPIO初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void Lpuart1_Gpio_Init(void)
|
||||
void __Uart2_Gpio_Init(void)
|
||||
{
|
||||
/* GPIO外设时钟使能 */
|
||||
std_rcc_gpio_clk_enable(RCC_PERIPH_CLK_GPIOB);
|
||||
|
||||
std_gpio_init_t tmp_gpio_cfg = {0};
|
||||
|
||||
/* UART2 GPIO引脚配置
|
||||
PB6 ------> UART2发送引脚
|
||||
PB7 ------> UART2接收引脚
|
||||
*/
|
||||
#if 0
|
||||
tmp_gpio_cfg.pin = UART2_TX_GPIO_PIN;
|
||||
tmp_gpio_cfg.mode = GPIO_MODE_ALTERNATE;
|
||||
tmp_gpio_cfg.output_type = GPIO_OUTPUT_PUSHPULL;
|
||||
tmp_gpio_cfg.pull = GPIO_PULLUP;
|
||||
tmp_gpio_cfg.alternate = GPIO_AF1_UART2;
|
||||
std_gpio_init(UART2_TX_GPIO_PORT, &tmp_gpio_cfg);
|
||||
#endif
|
||||
|
||||
tmp_gpio_cfg.pin = UART2_RX_GPIO_PIN;
|
||||
tmp_gpio_cfg.mode = GPIO_MODE_ALTERNATE;
|
||||
tmp_gpio_cfg.output_type = GPIO_OUTPUT_PUSHPULL;
|
||||
tmp_gpio_cfg.pull = GPIO_PULLUP;
|
||||
tmp_gpio_cfg.alternate = GPIO_AF1_UART2;
|
||||
std_gpio_init(UART2_RX_GPIO_PORT, &tmp_gpio_cfg);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief GPIO初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void __Lpuart1_Gpio_Init(void)
|
||||
{
|
||||
/* GPIO外设时钟使能 */
|
||||
std_rcc_gpio_clk_enable(RCC_PERIPH_CLK_GPIOB);
|
||||
|
@ -232,7 +258,7 @@ void Lpuart1_Gpio_Init(void)
|
|||
* @brief USART1初始化
|
||||
* @retval 无
|
||||
*/
|
||||
void _Uart1_Init(uint32_t baudrate, uint32_t par)
|
||||
void __Uart1_Cfg(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
/* USART1时钟使能 */
|
||||
std_rcc_apb2_clk_enable(RCC_PERIPH_CLK_USART1);
|
||||
|
@ -253,6 +279,13 @@ void _Uart1_Init(uint32_t baudrate, uint32_t par)
|
|||
while (1);
|
||||
}
|
||||
|
||||
#ifdef UART1_DMA_RX_ENABLE
|
||||
/* 使能USART DMA接收 */
|
||||
std_usart_dma_rx_enable(USART1); // 串口DMA接收使能
|
||||
#endif
|
||||
|
||||
std_usart_enable(USART1); // 串口使能
|
||||
|
||||
/* NVIC初始化 */
|
||||
NVIC_SetPriority(USART1_IRQn, 0);
|
||||
NVIC_EnableIRQ(USART1_IRQn);
|
||||
|
@ -260,23 +293,51 @@ void _Uart1_Init(uint32_t baudrate, uint32_t par)
|
|||
std_usart_cr1_interrupt_enable(USART1, USART_CR1_INTERRUPT_PE);
|
||||
std_usart_cr1_interrupt_enable(USART1, USART_CR3_INTERRUPT_ERR);
|
||||
std_usart_cr1_interrupt_enable(USART1, USART_CR1_INTERRUPT_IDLE);
|
||||
|
||||
#ifndef UART1_DMA_RX_ENABLE
|
||||
std_usart_cr1_interrupt_enable(USART1, USART_CR1_INTERRUPT_RXNE);
|
||||
#endif // !UART1_DMA_RX_ENABLE
|
||||
|
||||
#ifdef UART1_DMA_RX_ENABLE
|
||||
/* 使能USART DMA接收 */
|
||||
std_usart_dma_rx_enable(USART1); // 串口DMA接收使能
|
||||
#endif
|
||||
}
|
||||
|
||||
std_usart_enable(USART1); // 串口使能
|
||||
/**
|
||||
* @brief UART2初始化配置
|
||||
* @retval 无
|
||||
*/
|
||||
void __Uart2_Cfg(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
/* UART2时钟使能 */
|
||||
std_rcc_apb1_clk_enable(RCC_PERIPH_CLK_UART2);
|
||||
|
||||
std_usart_init_t usart_config = {0};
|
||||
|
||||
usart_config.direction = USART_DIRECTION_RECEIVE;
|
||||
usart_config.baudrate = baudrate;
|
||||
usart_config.wordlength = USART_WORDLENGTH_8BITS;
|
||||
usart_config.stopbits = USART_STOPBITS_1;
|
||||
usart_config.parity = par;
|
||||
usart_config.hardware_flow = USART_FLOWCONTROL_NONE;
|
||||
|
||||
/* USART初始化 */
|
||||
if (STD_OK != std_usart_init(UART2, &usart_config))
|
||||
{
|
||||
/* 波特率配置不正确处理代码 */
|
||||
while (1);
|
||||
}
|
||||
|
||||
std_usart_enable(UART2); // 串口使能
|
||||
|
||||
/* NVIC初始化 */
|
||||
NVIC_SetPriority(UART2_IRQn, 3);
|
||||
NVIC_EnableIRQ(UART2_IRQn);
|
||||
|
||||
std_usart_cr1_interrupt_enable(UART2, USART_CR1_INTERRUPT_RXNE);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LPUART初始化配置,时钟源为RCH
|
||||
* @retval 无
|
||||
*/
|
||||
void _Lpuart_Init(uint32_t baudrate, uint32_t par)
|
||||
void __Lpuart_Init(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
std_lpuart_init_t lpuart_config = {0};
|
||||
|
||||
|
@ -308,22 +369,35 @@ void _Lpuart_Init(uint32_t baudrate, uint32_t par)
|
|||
std_usart_cr1_interrupt_enable(LPUART1, USART_CR3_INTERRUPT_ERR);
|
||||
}
|
||||
|
||||
void UART1_Init(uint32_t baudrate, uint32_t par)
|
||||
void __UART1_Init(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
/* Initialize ringbuff */
|
||||
lwrb_init(&uart1_rx_rb, uart1_rx_rb_data, sizeof(uart1_rx_rb_data));
|
||||
lwrb_init(&uart1_tx_rb, uart1_tx_rb_data, sizeof(uart1_tx_rb_data));
|
||||
|
||||
/* 串口DMA配置 */
|
||||
Uart1_Dma_Init();
|
||||
__Uart1_Dma_Init();
|
||||
/* GPIO初始化 */
|
||||
Uart1_Gpio_Init();
|
||||
__Uart1_Gpio_Init();
|
||||
/* UASRT1初始化 */
|
||||
_Uart1_Init(baudrate, par);
|
||||
__Uart1_Cfg(baudrate, par);
|
||||
|
||||
LOG_I("USART1 Init");
|
||||
}
|
||||
|
||||
void UART2_Init(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
/* Initialize ringbuff */
|
||||
lwrb_init(&uart2_rx_rb, uart2_rx_rb_data, sizeof(uart2_rx_rb_data));
|
||||
|
||||
/* GPIO初始化 */
|
||||
__Uart2_Gpio_Init();
|
||||
/* USRT2初始化 */
|
||||
__Uart2_Cfg(baudrate, par);
|
||||
|
||||
LOG_I("UART2 Init");
|
||||
}
|
||||
|
||||
void LPUART1_Init(uint32_t baudrate, uint32_t par)
|
||||
{
|
||||
/* Initialize ringbuff */
|
||||
|
@ -331,9 +405,9 @@ void LPUART1_Init(uint32_t baudrate, uint32_t par)
|
|||
lwrb_init(&lpuart1_tx_rb, lpuart1_tx_rb_data, sizeof(lpuart1_tx_rb_data));
|
||||
|
||||
/* GPIO初始化 */
|
||||
Lpuart1_Gpio_Init();
|
||||
__Lpuart1_Gpio_Init();
|
||||
/* UASRT1初始化 */
|
||||
_Lpuart_Init(baudrate, par);
|
||||
__Lpuart_Init(baudrate, par);
|
||||
|
||||
LOG_I("LPUART1_Init");
|
||||
}
|
||||
|
@ -351,7 +425,6 @@ rt_inline void _UART1_ProcessData(const void *data, size_t len)
|
|||
lwrb_write(&uart1_rx_rb, data, len);
|
||||
}
|
||||
|
||||
|
||||
static void _UART1_RxCheck(void)
|
||||
{
|
||||
static size_t old_pos;
|
||||
|
@ -391,8 +464,8 @@ static void _UART1_StartTxDMATransfer(void)
|
|||
// uint32_t primask;
|
||||
|
||||
rt_enter_critical();
|
||||
// primask = __get_PRIMASK();
|
||||
// __disable_irq();
|
||||
// primask = __get_PRIMASK();
|
||||
// __disable_irq();
|
||||
if (_uart1_tx_dma_current_len == 0 && (_uart1_tx_dma_current_len = lwrb_get_linear_block_read_length(&uart1_tx_rb)) > 0)
|
||||
{
|
||||
/* Disable channel if enabled */
|
||||
|
@ -406,11 +479,9 @@ static void _UART1_StartTxDMATransfer(void)
|
|||
/* enable transfer */
|
||||
std_dma_enable(UART1_DMA_TX_CHANNEL);
|
||||
std_usart_dma_tx_enable(USART1);
|
||||
|
||||
}
|
||||
// __set_PRIMASK(primask);
|
||||
rt_exit_critical();
|
||||
|
||||
}
|
||||
|
||||
rt_uint32_t UART1_Write(const void *data, size_t len)
|
||||
|
@ -451,32 +522,70 @@ rt_uint32_t LPUART1_SendString(const char *str)
|
|||
return LPUART1_Write(str, rt_strlen(str));
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief UART2 RX complete callback
|
||||
* \param[in]
|
||||
*/
|
||||
void Uart2_Rx_Complate_Check_Entry(void *parameter)
|
||||
{
|
||||
static size_t last_pos = 0;
|
||||
size_t pos = lwrb_get_full(&uart2_rx_rb);
|
||||
|
||||
// 如果上次长度与当前长度相同且大于0,则认为接收完成
|
||||
if (last_pos == pos && pos > 0)
|
||||
{
|
||||
// LOG_D("uart2_rx_rb: %d", pos);
|
||||
#if 0
|
||||
/*测试读取*/
|
||||
|
||||
{
|
||||
|
||||
uint8_t sensor_rx_data[64] = {0};
|
||||
//确保读取的数据量不超过剩余的数据量
|
||||
size_t read_size = ((pos < sizeof(sensor_rx_data)) ? pos : sizeof(sensor_rx_data));
|
||||
lwrb_read(&uart2_rx_rb, sensor_rx_data, read_size);
|
||||
LOG_D("uart2_rx_rb: %s", sensor_rx_data);
|
||||
|
||||
}
|
||||
#endif
|
||||
// TODO: 处理接收到的数据
|
||||
|
||||
rt_sem_release(&sensor_rx_sem);
|
||||
// 清空last_pos以准备下一次接收
|
||||
last_pos = 0;
|
||||
}
|
||||
// 检查是否有新的数据到达
|
||||
if (pos > 0)
|
||||
{
|
||||
last_pos = pos;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief LPUART1 RX complete callback
|
||||
* \param[in]
|
||||
* \param[in]
|
||||
*/
|
||||
void Lpuart_Rx_Complate_Check_Entry(void *parameter)
|
||||
{
|
||||
static size_t last_pos = 0;
|
||||
size_t pos = lwrb_get_full(&lpuart1_rx_rb);
|
||||
|
||||
size_t pos = lwrb_get_full(&lpuart1_rx_rb);
|
||||
|
||||
// 如果上次位置与当前位置相同且大于0,则认为接收完成
|
||||
// 如果上次长度与当前长度相同且大于0,则认为接收完成
|
||||
if (last_pos == pos && pos > 0)
|
||||
{
|
||||
LOG_D("lpuart1_rx_rb: %d", pos);
|
||||
//TODO: 处理接收到的数据
|
||||
// TODO: 处理接收到的数据
|
||||
rt_sem_release(hr_rx_sem);
|
||||
/*测试读取*/
|
||||
{
|
||||
#if 0
|
||||
#if 0
|
||||
uint8_t lp_rx_data[16] = {0};
|
||||
确保读取的数据量不超过剩余的数据量
|
||||
size_t read_size = ((pos < sizeof(lp_rx_data)) ? pos : sizeof(lp_rx_data));
|
||||
|
||||
lwrb_read(&lpuart1_rx_rb, lp_rx_data, read_size);
|
||||
LPUART1_Write(lp_rx_data, read_size);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
// 清空last_pos以准备下一次接收
|
||||
last_pos = 0;
|
||||
|
@ -487,6 +596,7 @@ void Lpuart_Rx_Complate_Check_Entry(void *parameter)
|
|||
last_pos = pos;
|
||||
}
|
||||
}
|
||||
|
||||
static void Uart1_Rx_Thread_Entry(void *parameter)
|
||||
{
|
||||
LOG_D("Uart1_Rx_Thread_Entry");
|
||||
|
@ -496,49 +606,9 @@ static void Uart1_Rx_Thread_Entry(void *parameter)
|
|||
#ifdef UART1_DMA_RX_ENABLE
|
||||
_UART1_RxCheck();
|
||||
#endif
|
||||
rt_thread_mdelay(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static int _UART1_SemCreate(void)
|
||||
{
|
||||
uart1_rx_check_sem = rt_sem_create("uart1_rx_check_sem", 0, RT_IPC_FLAG_PRIO);
|
||||
if (uart1_rx_check_sem == RT_NULL)
|
||||
{
|
||||
RTT_LOG_D("create uart1_rx_check_sem create fail");
|
||||
}
|
||||
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
uart1_rx_ok_sem = rt_sem_create("uart1_rx_ok_sem", 0, RT_IPC_FLAG_PRIO);
|
||||
if (uart1_rx_ok_sem == RT_NULL)
|
||||
{
|
||||
RTT_LOG_D("create uart1_rx_ok_sem create fail");
|
||||
}
|
||||
#endif
|
||||
//采用软件定时器方式,检测串口接收是否完成
|
||||
lpuart1_rx_timer = rt_timer_create("lprx_time", Lpuart_Rx_Complate_Check_Entry,
|
||||
RT_NULL, 10,
|
||||
RT_TIMER_FLAG_PERIODIC);
|
||||
/* 启动定时器 1 */
|
||||
if (lpuart1_rx_timer != RT_NULL) rt_timer_start(lpuart1_rx_timer);
|
||||
|
||||
if (rt_thread_init(&uart1_rx_thread,
|
||||
"uart1_rx_thread",
|
||||
Uart1_Rx_Thread_Entry,
|
||||
RT_NULL,
|
||||
&uart1_rx_thread_stack[0],
|
||||
sizeof(uart1_rx_thread_stack),
|
||||
UART1_DMA_RX_THREAD_PRIORITY,
|
||||
UART1_DMA_RX_THREAD_TIMESLICE) == RT_EOK)
|
||||
{
|
||||
RTT_LOG_I("startup uart1_dma_rx_thread return = %d", rt_thread_startup(&uart1_rx_thread));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
INIT_PREV_EXPORT(_UART1_SemCreate);
|
||||
|
||||
#ifdef UART1_DMA_RX_ENABLE
|
||||
/**
|
||||
* @brief DMA通道0中断服务函数 UART1 RX
|
||||
|
@ -586,7 +656,7 @@ void DMA_Channel1_IRQHandler(void)
|
|||
std_dma_clear_flag(DMA_CLEAR_TF1);
|
||||
lwrb_skip(&uart1_tx_rb, _uart1_tx_dma_current_len); /* Skip buffer, it has been successfully sent out */
|
||||
_uart1_tx_dma_current_len = 0; /* Reset data length */
|
||||
_UART1_StartTxDMATransfer();
|
||||
_UART1_StartTxDMATransfer();
|
||||
}
|
||||
|
||||
/* leave interrupt */
|
||||
|
@ -603,12 +673,10 @@ void USART1_IRQHandler(void)
|
|||
rt_interrupt_enter();
|
||||
|
||||
#ifndef UART1_DMA_RX_ENABLE
|
||||
uint8_t data = 0;
|
||||
/* 接收到字节 */
|
||||
if (((std_usart_get_cr1_interrupt_enable(USART1, USART_CR1_INTERRUPT_RXNE)) && (std_usart_get_flag(USART1, USART_FLAG_RXNE))) != RESET)
|
||||
{
|
||||
std_usart_clear_flag(USART1, USART_FLAG_RXNE);
|
||||
data = (uint8_t)std_lpuart_rx_data_read(USART1);
|
||||
uint8_t data = (uint8_t)std_usart_rx_read_data(USART1);
|
||||
lwrb_write(&uart1_rx_rb, &data, 1);
|
||||
}
|
||||
#endif
|
||||
|
@ -626,17 +694,40 @@ void USART1_IRQHandler(void)
|
|||
if (((std_usart_get_cr1_interrupt_enable(USART1, USART_CR1_INTERRUPT_IDLE)) && (std_usart_get_flag(USART1, USART_FLAG_IDLE))) != RESET)
|
||||
{
|
||||
std_usart_clear_flag(USART1, USART_CLEAR_IDLE);
|
||||
rt_sem_release(uart1_rx_check_sem);
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
#ifdef UART1_DMA_RX_ENABLE
|
||||
rt_sem_release(uart1_rx_check_sem);
|
||||
#else
|
||||
rt_sem_release(uart1_rx_ok_sem);
|
||||
#endif
|
||||
|
||||
#endif //! UART1_DMA_RX_ENABLE
|
||||
#endif //! DEBUG_OUTPUT_SELECT
|
||||
|
||||
}
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief UART2中断服务函数
|
||||
* @retval 无
|
||||
*/
|
||||
|
||||
void UART2_IRQHandler(void)
|
||||
{
|
||||
/* enter interrupt */
|
||||
rt_interrupt_enter();
|
||||
|
||||
/* 检查到RXNE标志置1后读取接收数据 */
|
||||
if (((std_usart_get_cr1_interrupt_enable(UART2, USART_CR1_INTERRUPT_RXNE)) && (std_usart_get_flag(UART2, USART_FLAG_RXNE))) != RESET)
|
||||
{
|
||||
uint8_t data = (uint8_t)std_usart_rx_read_data(UART2);
|
||||
lwrb_write(&uart2_rx_rb, &data, 1);
|
||||
}
|
||||
|
||||
/* leave interrupt */
|
||||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LPUART中断服务函数
|
||||
* @retval 无
|
||||
|
@ -685,11 +776,52 @@ void LPUART1_IRQHandler(void)
|
|||
rt_interrupt_leave();
|
||||
}
|
||||
|
||||
static int _UART_SemCreate(void)
|
||||
{
|
||||
uart1_rx_check_sem = rt_sem_create("uart1_rx_check_sem", 0, RT_IPC_FLAG_FIFO);
|
||||
if (uart1_rx_check_sem == RT_NULL)
|
||||
{
|
||||
RTT_LOG_D("create uart1_rx_check_sem create fail");
|
||||
}
|
||||
|
||||
#ifdef DEBUG_OUTPUT_SELECT
|
||||
uart1_rx_ok_sem = rt_sem_create("uart1_rx_ok_sem", 0, RT_IPC_FLAG_FIFO);
|
||||
if (uart1_rx_ok_sem == RT_NULL)
|
||||
{
|
||||
RTT_LOG_D("create uart1_rx_ok_sem create fail");
|
||||
}
|
||||
#endif
|
||||
// 采用软件定时器方式,检测串口接收是否完成
|
||||
uart2_rx_timer = rt_timer_create("uart2_rx_time", Uart2_Rx_Complate_Check_Entry,
|
||||
RT_NULL, 20,
|
||||
RT_TIMER_FLAG_PERIODIC);
|
||||
|
||||
if (uart2_rx_timer != RT_NULL) rt_timer_start(uart2_rx_timer); /* 启动定时器 */
|
||||
// 采用软件定时器方式,检测串口接收是否完成
|
||||
lpuart1_rx_timer = rt_timer_create("lprx_time", Lpuart_Rx_Complate_Check_Entry,
|
||||
RT_NULL, 20,
|
||||
RT_TIMER_FLAG_PERIODIC);
|
||||
if (lpuart1_rx_timer != RT_NULL) rt_timer_start(lpuart1_rx_timer); /* 启动定时器 */
|
||||
|
||||
if (rt_thread_init(&uart1_rx_thread,
|
||||
"uart1_rx_thread",
|
||||
Uart1_Rx_Thread_Entry,
|
||||
RT_NULL,
|
||||
&uart1_rx_thread_stack[0],
|
||||
sizeof(uart1_rx_thread_stack),
|
||||
UART1_RX_THREAD_PRIORITY,
|
||||
UART1_RX_THREAD_TIMESLICE) == RT_EOK)
|
||||
{
|
||||
RTT_LOG_I("startup uart1_dma_rx_thread return = %d", rt_thread_startup(&uart1_rx_thread));
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
INIT_PREV_EXPORT(_UART_SemCreate);
|
||||
|
||||
int rt_hw_usart_init(void)
|
||||
{
|
||||
UART1_Init(BAUD_RATE_115200, LPUART_PARITY_NONE);
|
||||
// LPUART1_Init(BAUD_RATE_4800, LPUART_PARITY_NONE);
|
||||
__UART1_Init(BAUD_RATE_115200, USART_PARITY_NONE);
|
||||
return RT_EOK;
|
||||
}
|
||||
INIT_PREV_EXPORT(rt_hw_usart_init);
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-08-19 10:10:06
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2024-09-05 14:37:01
|
||||
* @LastEditTime: 2024-09-14 15:13:54
|
||||
* @FilePath: \USART1_Interrupt - RT-Thread\user\Source\main.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -31,7 +31,6 @@
|
|||
#include "dev_pin.h"
|
||||
#include "user_rtt.h"
|
||||
|
||||
|
||||
#define LOG_TAG "main"
|
||||
#define LOG_LVL LOG_LVL_DBG
|
||||
#include <ulog.h>
|
||||
|
@ -40,15 +39,13 @@
|
|||
// #define LED0_PIN GET_PIN(B, 8)
|
||||
/*-------------------------------------------functions------------------------------------------*/
|
||||
|
||||
|
||||
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);
|
||||
|
||||
// rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT);
|
||||
LOG_I("test CIU32 L051 RT-Thread!\r\n");
|
||||
LOG_I("SystemCoreClock = %d MHZ\n", SystemCoreClock / 1000000);
|
||||
|
||||
while (1)
|
||||
{
|
||||
// rt_pin_write(LED0_PIN, PIN_HIGH);
|
||||
|
@ -65,7 +62,3 @@ void System_Reset(void)
|
|||
}
|
||||
/* µ¼³öµ½ msh ÃüÁîÁбíÖÐ */
|
||||
MSH_CMD_EXPORT(System_Reset, "System_Reset");
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue