Compare commits
2 Commits
master
...
26cccd60a0
| Author | SHA1 | Date | |
|---|---|---|---|
| 26cccd60a0 | |||
| aab0efdd77 |
+130
-338
@@ -22,7 +22,7 @@
|
|||||||
</DaveTm>
|
</DaveTm>
|
||||||
|
|
||||||
<Target>
|
<Target>
|
||||||
<TargetName>Debug</TargetName>
|
<TargetName>Release</TargetName>
|
||||||
<ToolsetNumber>0x4</ToolsetNumber>
|
<ToolsetNumber>0x4</ToolsetNumber>
|
||||||
<ToolsetName>ARM-ADS</ToolsetName>
|
<ToolsetName>ARM-ADS</ToolsetName>
|
||||||
<TargetOption>
|
<TargetOption>
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
<bEvRecOn>1</bEvRecOn>
|
<bEvRecOn>1</bEvRecOn>
|
||||||
<bSchkAxf>0</bSchkAxf>
|
<bSchkAxf>0</bSchkAxf>
|
||||||
<bTchkAxf>0</bTchkAxf>
|
<bTchkAxf>0</bTchkAxf>
|
||||||
<nTsel>12</nTsel>
|
<nTsel>3</nTsel>
|
||||||
<sDll></sDll>
|
<sDll></sDll>
|
||||||
<sDllPa></sDllPa>
|
<sDllPa></sDllPa>
|
||||||
<sDlgDll></sDlgDll>
|
<sDlgDll></sDlgDll>
|
||||||
@@ -153,40 +153,7 @@
|
|||||||
<Name>UL2CM3(-S0 -C0 -P0 -FD1FFF8000 -FC1000 -FN2 -FF0HC32F460_512K -FS00 -FL080000 -FF1HC32F460_otp -FS13000C00 -FL13FC -FP0($$Device:HC32F460JETA$FlashARM\HC32F460_512K.FLM) -FP1($$Device:HC32F460JETA$FlashARM\HC32F460_otp.FLM))</Name>
|
<Name>UL2CM3(-S0 -C0 -P0 -FD1FFF8000 -FC1000 -FN2 -FF0HC32F460_512K -FS00 -FL080000 -FF1HC32F460_otp -FS13000C00 -FL13FC -FP0($$Device:HC32F460JETA$FlashARM\HC32F460_512K.FLM) -FP1($$Device:HC32F460JETA$FlashARM\HC32F460_otp.FLM))</Name>
|
||||||
</SetRegEntry>
|
</SetRegEntry>
|
||||||
</TargetDriverDllRegistry>
|
</TargetDriverDllRegistry>
|
||||||
<Breakpoint>
|
<Breakpoint/>
|
||||||
<Bp>
|
|
||||||
<Number>0</Number>
|
|
||||||
<Type>0</Type>
|
|
||||||
<LineNumber>1118</LineNumber>
|
|
||||||
<EnabledFlag>1</EnabledFlag>
|
|
||||||
<Address>4658</Address>
|
|
||||||
<ByteObject>0</ByteObject>
|
|
||||||
<HtxType>0</HtxType>
|
|
||||||
<ManyObjects>0</ManyObjects>
|
|
||||||
<SizeOfObject>0</SizeOfObject>
|
|
||||||
<BreakByAccess>0</BreakByAccess>
|
|
||||||
<BreakIfRCount>1</BreakIfRCount>
|
|
||||||
<Filename>..\source\User\Src\main.c</Filename>
|
|
||||||
<ExecCommand></ExecCommand>
|
|
||||||
<Expression>\\BombSensor\../source/User/Src/main.c\1118</Expression>
|
|
||||||
</Bp>
|
|
||||||
<Bp>
|
|
||||||
<Number>1</Number>
|
|
||||||
<Type>0</Type>
|
|
||||||
<LineNumber>1156</LineNumber>
|
|
||||||
<EnabledFlag>1</EnabledFlag>
|
|
||||||
<Address>5298</Address>
|
|
||||||
<ByteObject>0</ByteObject>
|
|
||||||
<HtxType>0</HtxType>
|
|
||||||
<ManyObjects>0</ManyObjects>
|
|
||||||
<SizeOfObject>0</SizeOfObject>
|
|
||||||
<BreakByAccess>0</BreakByAccess>
|
|
||||||
<BreakIfRCount>1</BreakIfRCount>
|
|
||||||
<Filename>..\source\User\Src\main.c</Filename>
|
|
||||||
<ExecCommand></ExecCommand>
|
|
||||||
<Expression>\\BombSensor\../source/User/Src/main.c\1156</Expression>
|
|
||||||
</Bp>
|
|
||||||
</Breakpoint>
|
|
||||||
<WatchWindow1>
|
<WatchWindow1>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>0</count>
|
<count>0</count>
|
||||||
@@ -251,97 +218,57 @@
|
|||||||
<Ww>
|
<Ww>
|
||||||
<count>12</count>
|
<count>12</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.SlopeCollDelay1mSCnt,0x0A</ItemText>
|
<ItemText>App.EmergencyDelay1mSCnt,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>13</count>
|
<count>13</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.EmergencyDelay1mSCnt,0x0A</ItemText>
|
<ItemText>App.MotorPara.Current_height,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>14</count>
|
<count>14</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.MotorPara.LU_HeightStress,0x0A</ItemText>
|
<ItemText>App.RightUpCS1237_SlopeArray[0],0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>15</count>
|
<count>15</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.MotorPara.LL_HeightStress,0x0A</ItemText>
|
<ItemText>App.RightLowCS1237_SlopeArray[0],0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>16</count>
|
<count>16</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.MotorPara.RU_HeightStress,0x0A</ItemText>
|
<ItemText>Olu_diff1,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>17</count>
|
<count>17</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.MotorPara.RL_HeightStress,0x0A</ItemText>
|
<ItemText>Olu_diff2,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>18</count>
|
<count>18</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.TD1mSDelayCnt,0x0A</ItemText>
|
<ItemText>Olu_diff3,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>19</count>
|
<count>19</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.RxUart3Data.RxBuff,0x10</ItemText>
|
<ItemText>Oru_diff1,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>20</count>
|
<count>20</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.RxUart3Data.RxLen,0x0A</ItemText>
|
<ItemText>Oru_diff2,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>21</count>
|
<count>21</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.Status</ItemText>
|
<ItemText>Oru_diff3,0x0A</ItemText>
|
||||||
</Ww>
|
</Ww>
|
||||||
<Ww>
|
<Ww>
|
||||||
<count>22</count>
|
<count>22</count>
|
||||||
<WinNumber>1</WinNumber>
|
<WinNumber>1</WinNumber>
|
||||||
<ItemText>App.MotorPara.CaliNum,0x0A</ItemText>
|
<ItemText>App.CentCollDelay1mSCnt,0x0A</ItemText>
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>23</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>App.CailUp1mSCnt,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>24</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>Oru_diff1,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>25</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>Orl_diff1,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>26</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>App.ADTrack.Stop_VPT,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>27</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>ru_ad[0],0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>28</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>App.MotorPara.RestFlag,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>29</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>App.MotorPara.Current_height,0x0A</ItemText>
|
|
||||||
</Ww>
|
|
||||||
<Ww>
|
|
||||||
<count>30</count>
|
|
||||||
<WinNumber>1</WinNumber>
|
|
||||||
<ItemText>App.HeightContRolCnt,0x0A</ItemText>
|
|
||||||
</Ww>
|
</Ww>
|
||||||
</WatchWindow1>
|
</WatchWindow1>
|
||||||
<Tracepoint>
|
<Tracepoint>
|
||||||
@@ -396,164 +323,9 @@
|
|||||||
</TargetOption>
|
</TargetOption>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target>
|
|
||||||
<TargetName>Release</TargetName>
|
|
||||||
<ToolsetNumber>0x4</ToolsetNumber>
|
|
||||||
<ToolsetName>ARM-ADS</ToolsetName>
|
|
||||||
<TargetOption>
|
|
||||||
<CLKADS>12000000</CLKADS>
|
|
||||||
<OPTTT>
|
|
||||||
<gFlags>0</gFlags>
|
|
||||||
<BeepAtEnd>1</BeepAtEnd>
|
|
||||||
<RunSim>0</RunSim>
|
|
||||||
<RunTarget>1</RunTarget>
|
|
||||||
<RunAbUc>0</RunAbUc>
|
|
||||||
</OPTTT>
|
|
||||||
<OPTHX>
|
|
||||||
<HexSelection>1</HexSelection>
|
|
||||||
<FlashByte>65535</FlashByte>
|
|
||||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
|
||||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
|
||||||
<HexOffset>0</HexOffset>
|
|
||||||
</OPTHX>
|
|
||||||
<OPTLEX>
|
|
||||||
<PageWidth>79</PageWidth>
|
|
||||||
<PageLength>66</PageLength>
|
|
||||||
<TabStop>8</TabStop>
|
|
||||||
<ListingPath>.\output\release\</ListingPath>
|
|
||||||
</OPTLEX>
|
|
||||||
<ListingPage>
|
|
||||||
<CreateCListing>1</CreateCListing>
|
|
||||||
<CreateAListing>1</CreateAListing>
|
|
||||||
<CreateLListing>1</CreateLListing>
|
|
||||||
<CreateIListing>0</CreateIListing>
|
|
||||||
<AsmCond>1</AsmCond>
|
|
||||||
<AsmSymb>1</AsmSymb>
|
|
||||||
<AsmXref>0</AsmXref>
|
|
||||||
<CCond>1</CCond>
|
|
||||||
<CCode>0</CCode>
|
|
||||||
<CListInc>0</CListInc>
|
|
||||||
<CSymb>0</CSymb>
|
|
||||||
<LinkerCodeListing>0</LinkerCodeListing>
|
|
||||||
</ListingPage>
|
|
||||||
<OPTXL>
|
|
||||||
<LMap>1</LMap>
|
|
||||||
<LComments>1</LComments>
|
|
||||||
<LGenerateSymbols>1</LGenerateSymbols>
|
|
||||||
<LLibSym>1</LLibSym>
|
|
||||||
<LLines>1</LLines>
|
|
||||||
<LLocSym>1</LLocSym>
|
|
||||||
<LPubSym>1</LPubSym>
|
|
||||||
<LXref>0</LXref>
|
|
||||||
<LExpSel>0</LExpSel>
|
|
||||||
</OPTXL>
|
|
||||||
<OPTFL>
|
|
||||||
<tvExp>1</tvExp>
|
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
|
||||||
<IsCurrentTarget>0</IsCurrentTarget>
|
|
||||||
</OPTFL>
|
|
||||||
<CpuCode>255</CpuCode>
|
|
||||||
<DebugOpt>
|
|
||||||
<uSim>0</uSim>
|
|
||||||
<uTrg>1</uTrg>
|
|
||||||
<sLdApp>1</sLdApp>
|
|
||||||
<sGomain>1</sGomain>
|
|
||||||
<sRbreak>1</sRbreak>
|
|
||||||
<sRwatch>1</sRwatch>
|
|
||||||
<sRmem>1</sRmem>
|
|
||||||
<sRfunc>1</sRfunc>
|
|
||||||
<sRbox>1</sRbox>
|
|
||||||
<tLdApp>1</tLdApp>
|
|
||||||
<tGomain>1</tGomain>
|
|
||||||
<tRbreak>1</tRbreak>
|
|
||||||
<tRwatch>1</tRwatch>
|
|
||||||
<tRmem>1</tRmem>
|
|
||||||
<tRfunc>0</tRfunc>
|
|
||||||
<tRbox>1</tRbox>
|
|
||||||
<tRtrace>1</tRtrace>
|
|
||||||
<sRSysVw>1</sRSysVw>
|
|
||||||
<tRSysVw>1</tRSysVw>
|
|
||||||
<sRunDeb>0</sRunDeb>
|
|
||||||
<sLrtime>0</sLrtime>
|
|
||||||
<bEvRecOn>1</bEvRecOn>
|
|
||||||
<bSchkAxf>0</bSchkAxf>
|
|
||||||
<bTchkAxf>0</bTchkAxf>
|
|
||||||
<nTsel>1</nTsel>
|
|
||||||
<sDll></sDll>
|
|
||||||
<sDllPa></sDllPa>
|
|
||||||
<sDlgDll></sDlgDll>
|
|
||||||
<sDlgPa></sDlgPa>
|
|
||||||
<sIfile></sIfile>
|
|
||||||
<tDll></tDll>
|
|
||||||
<tDllPa></tDllPa>
|
|
||||||
<tDlgDll></tDlgDll>
|
|
||||||
<tDlgPa></tDlgPa>
|
|
||||||
<tIfile></tIfile>
|
|
||||||
<pMon>BIN\UL2CM3.DLL</pMon>
|
|
||||||
</DebugOpt>
|
|
||||||
<TargetDriverDllRegistry>
|
|
||||||
<SetRegEntry>
|
|
||||||
<Number>0</Number>
|
|
||||||
<Key>UL2CM3</Key>
|
|
||||||
<Name>UL2CM3(-S0 -C0 -P0 -FD1FFF8000 -FC1000 -FN2 -FF0HC32F460_512K -FS00 -FL080000 -FF1HC32F460_otp -FS13000C00 -FL13FC -FP0($$Device:HC32F460PETB$FlashARM\HC32F460_512K.FLM) -FP1($$Device:HC32F460PETB$FlashARM\HC32F460_otp.FLM))</Name>
|
|
||||||
</SetRegEntry>
|
|
||||||
</TargetDriverDllRegistry>
|
|
||||||
<Breakpoint/>
|
|
||||||
<Tracepoint>
|
|
||||||
<THDelay>0</THDelay>
|
|
||||||
</Tracepoint>
|
|
||||||
<DebugFlag>
|
|
||||||
<trace>0</trace>
|
|
||||||
<periodic>0</periodic>
|
|
||||||
<aLwin>0</aLwin>
|
|
||||||
<aCover>0</aCover>
|
|
||||||
<aSer1>0</aSer1>
|
|
||||||
<aSer2>0</aSer2>
|
|
||||||
<aPa>0</aPa>
|
|
||||||
<viewmode>0</viewmode>
|
|
||||||
<vrSel>0</vrSel>
|
|
||||||
<aSym>0</aSym>
|
|
||||||
<aTbox>0</aTbox>
|
|
||||||
<AscS1>0</AscS1>
|
|
||||||
<AscS2>0</AscS2>
|
|
||||||
<AscS3>0</AscS3>
|
|
||||||
<aSer3>0</aSer3>
|
|
||||||
<eProf>0</eProf>
|
|
||||||
<aLa>0</aLa>
|
|
||||||
<aPa1>0</aPa1>
|
|
||||||
<AscS4>0</AscS4>
|
|
||||||
<aSer4>0</aSer4>
|
|
||||||
<StkLoc>0</StkLoc>
|
|
||||||
<TrcWin>0</TrcWin>
|
|
||||||
<newCpu>0</newCpu>
|
|
||||||
<uProt>0</uProt>
|
|
||||||
</DebugFlag>
|
|
||||||
<LintExecutable></LintExecutable>
|
|
||||||
<LintConfigFile></LintConfigFile>
|
|
||||||
<bLintAuto>0</bLintAuto>
|
|
||||||
<bAutoGenD>0</bAutoGenD>
|
|
||||||
<LntExFlags>0</LntExFlags>
|
|
||||||
<pMisraName></pMisraName>
|
|
||||||
<pszMrule></pszMrule>
|
|
||||||
<pSingCmds></pSingCmds>
|
|
||||||
<pMultCmds></pMultCmds>
|
|
||||||
<pMisraNamep></pMisraNamep>
|
|
||||||
<pszMrulep></pszMrulep>
|
|
||||||
<pSingCmdsp></pSingCmdsp>
|
|
||||||
<pMultCmdsp></pMultCmdsp>
|
|
||||||
<DebugDescription>
|
|
||||||
<Enable>1</Enable>
|
|
||||||
<EnableFlashSeq>1</EnableFlashSeq>
|
|
||||||
<EnableLog>0</EnableLog>
|
|
||||||
<Protocol>2</Protocol>
|
|
||||||
<DbgClock>1000000</DbgClock>
|
|
||||||
</DebugDescription>
|
|
||||||
</TargetOption>
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>common</GroupName>
|
<GroupName>common</GroupName>
|
||||||
<tvExp>0</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
@@ -576,7 +348,7 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\mcu\common\system_hc32f460.c</PathWithFileName>
|
<PathWithFileName>..\..\mcu\common\system_hc32f460.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>system_hc32f460.c</FilenameWithoutPath>
|
<FilenameWithoutPath>system_hc32f460.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
@@ -596,8 +368,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_wdt.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_adc.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_wdt.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_adc.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -608,8 +380,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_utility.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_aes.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_utility.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_aes.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -620,8 +392,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_usart.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_can.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_usart.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_can.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -632,8 +404,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_trng.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_can1.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_trng.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_can1.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -644,8 +416,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timera.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_clk.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timera.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_clk.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -656,8 +428,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer6.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_cmp.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer6.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_cmp.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -668,8 +440,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer4_sevt.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_crc.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer4_sevt.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_crc.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -680,8 +452,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer4_pwm.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_dcu.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer4_pwm.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_dcu.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -692,8 +464,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer4_oco.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_dmac.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer4_oco.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_dmac.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -704,8 +476,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer4_emb.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_efm.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer4_emb.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_efm.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -716,8 +488,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer4_cnt.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_emb.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer4_cnt.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_emb.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -728,8 +500,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_timer0.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_event_port.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_timer0.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_event_port.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -740,8 +512,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_swdt.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_exint_nmi_swi.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_swdt.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_exint_nmi_swi.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -752,8 +524,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_sram.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_gpio.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_sram.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_gpio.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -764,8 +536,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_spi.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_hash.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_spi.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_hash.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -776,8 +548,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_sdioc.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_i2c.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_sdioc.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_i2c.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -788,8 +560,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_rtc.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_i2s.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_rtc.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_i2s.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -800,8 +572,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_rmu.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_icg.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_rmu.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_icg.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -812,8 +584,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_qspi.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_interrupts.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_qspi.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_interrupts.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -824,8 +596,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_pwc.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_keyscan.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_pwc.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_keyscan.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -836,8 +608,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_ots.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_mpu.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_ots.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_mpu.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -848,8 +620,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_mpu.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_ots.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_mpu.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_ots.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -860,8 +632,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_keyscan.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_pwc.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_keyscan.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_pwc.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -872,8 +644,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_interrupts.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_qspi.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_interrupts.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_qspi.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -884,8 +656,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_icg.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_rmu.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_icg.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_rmu.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -896,8 +668,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_i2s.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_rtc.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_i2s.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_rtc.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -908,8 +680,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_i2c.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_sdioc.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_i2c.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_sdioc.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -920,8 +692,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_hash.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_spi.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_hash.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_spi.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -932,8 +704,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_gpio.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_sram.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_gpio.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_sram.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -944,8 +716,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_exint_nmi_swi.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_swdt.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_exint_nmi_swi.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_swdt.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -956,8 +728,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_event_port.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer0.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_event_port.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer0.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -968,8 +740,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_emb.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer4_cnt.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_emb.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer4_cnt.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -980,8 +752,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_efm.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer4_emb.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_efm.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer4_emb.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -992,8 +764,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_dmac.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer4_oco.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_dmac.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer4_oco.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1004,8 +776,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_dcu.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer4_pwm.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_dcu.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer4_pwm.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1016,8 +788,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_crc.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer4_sevt.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_crc.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer4_sevt.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1028,8 +800,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_cmp.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timer6.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_cmp.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timer6.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1040,8 +812,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_clk.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_timera.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_clk.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_timera.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1052,8 +824,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_can1.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_trng.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_can1.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_trng.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1064,8 +836,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_can.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_usart.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_can.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_usart.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1076,8 +848,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_aes.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_utility.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_aes.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_utility.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1088,8 +860,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\..\..\driver\src\hc32f460_adc.c</PathWithFileName>
|
<PathWithFileName>..\..\driver\src\hc32f460_wdt.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>hc32f460_adc.c</FilenameWithoutPath>
|
<FilenameWithoutPath>hc32f460_wdt.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1108,8 +880,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\source\User\Src\bsp.c</PathWithFileName>
|
<PathWithFileName>..\source\User\Src\Algorithm.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>bsp.c</FilenameWithoutPath>
|
<FilenameWithoutPath>Algorithm.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1120,8 +892,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\source\User\Src\main.c</PathWithFileName>
|
<PathWithFileName>..\source\User\Src\bsp.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>main.c</FilenameWithoutPath>
|
<FilenameWithoutPath>bsp.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1132,8 +904,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\source\User\Src\Algorithm.c</PathWithFileName>
|
<PathWithFileName>..\source\User\Src\Debug.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>Algorithm.c</FilenameWithoutPath>
|
<FilenameWithoutPath>Debug.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1156,8 +928,8 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\source\User\Src\Debug.c</PathWithFileName>
|
<PathWithFileName>..\source\User\Src\main.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>Debug.c</FilenameWithoutPath>
|
<FilenameWithoutPath>main.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
<bShared>0</bShared>
|
<bShared>0</bShared>
|
||||||
</File>
|
</File>
|
||||||
@@ -1165,7 +937,7 @@
|
|||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>CS1237</GroupName>
|
<GroupName>CS1237</GroupName>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
@@ -1220,7 +992,7 @@
|
|||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
<Group>
|
<Group>
|
||||||
<GroupName>dc_motor</GroupName>
|
<GroupName>BeepAndLed</GroupName>
|
||||||
<tvExp>1</tvExp>
|
<tvExp>1</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<cbSel>0</cbSel>
|
<cbSel>0</cbSel>
|
||||||
@@ -1232,6 +1004,26 @@
|
|||||||
<tvExp>0</tvExp>
|
<tvExp>0</tvExp>
|
||||||
<tvExpOptDlg>0</tvExpOptDlg>
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
<bDave2>0</bDave2>
|
<bDave2>0</bDave2>
|
||||||
|
<PathWithFileName>..\source\Module\BeepAndLed\BeepAndLed.c</PathWithFileName>
|
||||||
|
<FilenameWithoutPath>BeepAndLed.c</FilenameWithoutPath>
|
||||||
|
<RteFlg>0</RteFlg>
|
||||||
|
<bShared>0</bShared>
|
||||||
|
</File>
|
||||||
|
</Group>
|
||||||
|
|
||||||
|
<Group>
|
||||||
|
<GroupName>dc_motor</GroupName>
|
||||||
|
<tvExp>1</tvExp>
|
||||||
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
|
<cbSel>0</cbSel>
|
||||||
|
<RteFlg>0</RteFlg>
|
||||||
|
<File>
|
||||||
|
<GroupNumber>6</GroupNumber>
|
||||||
|
<FileNumber>55</FileNumber>
|
||||||
|
<FileType>1</FileType>
|
||||||
|
<tvExp>0</tvExp>
|
||||||
|
<tvExpOptDlg>0</tvExpOptDlg>
|
||||||
|
<bDave2>0</bDave2>
|
||||||
<PathWithFileName>..\source\Module\dc_motor\dc_motor.c</PathWithFileName>
|
<PathWithFileName>..\source\Module\dc_motor\dc_motor.c</PathWithFileName>
|
||||||
<FilenameWithoutPath>dc_motor.c</FilenameWithoutPath>
|
<FilenameWithoutPath>dc_motor.c</FilenameWithoutPath>
|
||||||
<RteFlg>0</RteFlg>
|
<RteFlg>0</RteFlg>
|
||||||
|
|||||||
+218
-887
File diff suppressed because it is too large
Load Diff
@@ -14,7 +14,7 @@
|
|||||||
/*
|
/*
|
||||||
* Define the Device Header File:
|
* Define the Device Header File:
|
||||||
*/
|
*/
|
||||||
#define CMSIS_device_header "HC32F460PETB.h"
|
#define CMSIS_device_header "HC32F460JETA.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,177 @@
|
|||||||
|
#include "BeepAndLed.h"
|
||||||
|
#include "beepAndLed.h"
|
||||||
|
#include "main.h" // 包含BUZZER_ON/OFF, LED等宏定义
|
||||||
|
|
||||||
|
// ========== 变量定义 ==========
|
||||||
|
static BeeperCtrl_t g_beeper = {
|
||||||
|
.state = BEEPER_STATE_IDLE,
|
||||||
|
.is_active = 0,
|
||||||
|
.repeat = 0,
|
||||||
|
.repeat_done = 0,
|
||||||
|
.on_ms = 0,
|
||||||
|
.off_ms = 0
|
||||||
|
};
|
||||||
|
|
||||||
|
// 延时计数器(供滴答定时器使用)
|
||||||
|
uint32_t BeepAndLedCollDelay1mSCnt = 0;
|
||||||
|
|
||||||
|
// ========== 硬件控制函数(根据您的实际宏定义修改)==========
|
||||||
|
static void Beeper_HW_On(void)
|
||||||
|
{
|
||||||
|
BUZZER_ON(); // 请替换为您的实际宏
|
||||||
|
LED_GREEN_OFF(); // 请替换为您的实际宏
|
||||||
|
LED_RED_ON(); // 请替换为您的实际宏
|
||||||
|
}
|
||||||
|
|
||||||
|
static void Beeper_HW_Off(void)
|
||||||
|
{
|
||||||
|
BUZZER_OFF(); // 请替换为您的实际宏
|
||||||
|
LED_GREEN_ON(); // 请替换为您的实际宏
|
||||||
|
LED_RED_OFF(); // 请替换为您的实际宏
|
||||||
|
}
|
||||||
|
|
||||||
|
// ========== 实现函数 ==========
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 蜂鸣器初始化
|
||||||
|
*/
|
||||||
|
void Beeper_Init(void)
|
||||||
|
{
|
||||||
|
Beeper_Stop();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 开始鸣响(非阻塞)
|
||||||
|
* @param on_ms 鸣响时间(ms)
|
||||||
|
* @param off_ms 间隔时间(ms)
|
||||||
|
* @param repeat 重复次数(0表示无效)
|
||||||
|
*
|
||||||
|
* @example Beeper_Start(200, 100, 3); // 鸣200ms,停100ms,重复3次
|
||||||
|
*/
|
||||||
|
void Beeper_Start(uint16_t on_ms, uint16_t off_ms, uint8_t repeat)
|
||||||
|
{
|
||||||
|
if (repeat == 0) return;
|
||||||
|
|
||||||
|
// 如果已经在鸣响,可以选择停止并重新开始
|
||||||
|
if (g_beeper.is_active) {
|
||||||
|
Beeper_Stop(); // 停止当前,重新开始新的
|
||||||
|
// return; // 或者选择忽略新请求
|
||||||
|
}
|
||||||
|
|
||||||
|
// 保存参数
|
||||||
|
g_beeper.on_ms = on_ms;
|
||||||
|
g_beeper.off_ms = off_ms;
|
||||||
|
g_beeper.repeat = repeat;
|
||||||
|
g_beeper.repeat_done = 0;
|
||||||
|
g_beeper.is_active = 1;
|
||||||
|
|
||||||
|
// 开启蜂鸣器
|
||||||
|
Beeper_HW_On();
|
||||||
|
|
||||||
|
// 设置延时计数器(开启状态延时)
|
||||||
|
BeepAndLedCollDelay1mSCnt = on_ms;
|
||||||
|
g_beeper.state = BEEPER_STATE_ON;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 停止鸣响
|
||||||
|
*/
|
||||||
|
void Beeper_Stop(void)
|
||||||
|
{
|
||||||
|
// 关闭硬件
|
||||||
|
Beeper_HW_Off();
|
||||||
|
|
||||||
|
// 重置状态机
|
||||||
|
g_beeper.state = BEEPER_STATE_IDLE;
|
||||||
|
g_beeper.is_active = 0;
|
||||||
|
g_beeper.repeat = 0;
|
||||||
|
g_beeper.repeat_done = 0;
|
||||||
|
BeepAndLedCollDelay1mSCnt = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 蜂鸣器状态机更新(放在main.c的while(1)中循环调用)
|
||||||
|
* @note 必须在滴答定时器更新BeepAndLedCollDelay1mSCnt后才能正确工作
|
||||||
|
*/
|
||||||
|
void BeeperLoopHandler(void)
|
||||||
|
{
|
||||||
|
if (!g_beeper.is_active) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (g_beeper.state) {
|
||||||
|
case BEEPER_STATE_ON:
|
||||||
|
// 蜂鸣器开启状态,等待计数器归零
|
||||||
|
if (BeepAndLedCollDelay1mSCnt == 0) {
|
||||||
|
// 延时结束,关闭蜂鸣器
|
||||||
|
Beeper_HW_Off();
|
||||||
|
|
||||||
|
g_beeper.repeat_done++;
|
||||||
|
|
||||||
|
// 检查是否完成所有重复
|
||||||
|
if (g_beeper.repeat_done >= g_beeper.repeat) {
|
||||||
|
// 全部完成,结束
|
||||||
|
g_beeper.is_active = 0;
|
||||||
|
g_beeper.state = BEEPER_STATE_IDLE;
|
||||||
|
} else {
|
||||||
|
// 还有下次,进入等待状态
|
||||||
|
BeepAndLedCollDelay1mSCnt = g_beeper.off_ms;
|
||||||
|
g_beeper.state = BEEPER_STATE_OFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BEEPER_STATE_OFF:
|
||||||
|
// 蜂鸣器关闭等待状态(间隔时间)
|
||||||
|
if (BeepAndLedCollDelay1mSCnt == 0) {
|
||||||
|
// 间隔结束,开启下一次鸣响
|
||||||
|
Beeper_HW_On();
|
||||||
|
|
||||||
|
BeepAndLedCollDelay1mSCnt = g_beeper.on_ms;
|
||||||
|
g_beeper.state = BEEPER_STATE_ON;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case BEEPER_STATE_WAIT:
|
||||||
|
case BEEPER_STATE_IDLE:
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 查询是否正在鸣响
|
||||||
|
* @return true:正在鸣响, false:空闲
|
||||||
|
*/
|
||||||
|
bool Beeper_IsPlaying(void)
|
||||||
|
{
|
||||||
|
return g_beeper.is_active;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 手动开启蜂鸣器(不计入状态机)
|
||||||
|
*/
|
||||||
|
void Beeper_On(void)
|
||||||
|
{
|
||||||
|
Beeper_HW_On();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 手动关闭蜂鸣器(不计入状态机)
|
||||||
|
*/
|
||||||
|
void Beeper_Off(void)
|
||||||
|
{
|
||||||
|
Beeper_HW_Off();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief 清除延时计数器(由滴答定时器调用)
|
||||||
|
* @note 这个函数放在滴答定时器的1ms中断中调用
|
||||||
|
*/
|
||||||
|
void Beeper_ClearDelay(void)
|
||||||
|
{
|
||||||
|
if (BeepAndLedCollDelay1mSCnt > 0) {
|
||||||
|
BeepAndLedCollDelay1mSCnt--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
#ifndef __BEEPANDLED_H
|
||||||
|
#define __BEEPANDLED_H
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
#include "bsp.h"
|
||||||
|
|
||||||
|
// ========== 蜂鸣器状态机状态定义 ==========
|
||||||
|
typedef enum {
|
||||||
|
BEEPER_STATE_IDLE = 0, // 空闲
|
||||||
|
BEEPER_STATE_ON, // 蜂鸣器开启延时中
|
||||||
|
BEEPER_STATE_OFF, // 蜂鸣器关闭延时中
|
||||||
|
BEEPER_STATE_WAIT // 等待下一次鸣响
|
||||||
|
} BeeperState_t;
|
||||||
|
|
||||||
|
// ========== 蜂鸣器控制结构体 ==========
|
||||||
|
typedef struct {
|
||||||
|
BeeperState_t state; // 当前状态
|
||||||
|
uint16_t on_ms; // 鸣响时间(ms)
|
||||||
|
uint16_t off_ms; // 间隔时间(ms)
|
||||||
|
uint8_t repeat; // 重复次数
|
||||||
|
uint8_t repeat_done; // 已完成次数
|
||||||
|
uint8_t is_active; // 是否激活
|
||||||
|
} BeeperCtrl_t;
|
||||||
|
|
||||||
|
// ========== 外部可访问变量 ==========
|
||||||
|
extern uint32_t BeepAndLedCollDelay1mSCnt; // 延时计数器(在beepAndLed.c中定义)
|
||||||
|
|
||||||
|
// ========== API函数 ==========
|
||||||
|
void Beeper_Init(void); // 初始化
|
||||||
|
void Beeper_Start(uint16_t on_ms, uint16_t off_ms, uint8_t repeat); // 开始鸣响(非阻塞)
|
||||||
|
void Beeper_Stop(void); // 停止鸣响
|
||||||
|
void BeeperLoopHandler(void); // 状态机更新(放在while(1)中)
|
||||||
|
bool Beeper_IsPlaying(void); // 查询是否正在鸣响
|
||||||
|
void Beeper_On(void); // 手动开启蜂鸣器
|
||||||
|
void Beeper_Off(void); // 手动关闭蜂鸣器
|
||||||
|
void Beeper_ClearDelay(void); // 清除延时计数器(供滴答定时器使用)
|
||||||
|
#endif /* _BEEP_AND_LED_H_ */
|
||||||
|
|
||||||
@@ -221,12 +221,12 @@
|
|||||||
|
|
||||||
//< LED
|
//< LED
|
||||||
#define LED_GREEN_PORTx (PortA)
|
#define LED_GREEN_PORTx (PortA)
|
||||||
#define LED_GREEN_PINx (Pin09)
|
#define LED_GREEN_PINx (Pin08)
|
||||||
#define LED_GREEN_ON() PORT_SetBits(LED_GREEN_PORTx, LED_GREEN_PINx)//拉高
|
#define LED_GREEN_ON() PORT_SetBits(LED_GREEN_PORTx, LED_GREEN_PINx)//拉高
|
||||||
#define LED_GREEN_OFF() PORT_ResetBits(LED_GREEN_PORTx, LED_GREEN_PINx)//拉低
|
#define LED_GREEN_OFF() PORT_ResetBits(LED_GREEN_PORTx, LED_GREEN_PINx)//拉低
|
||||||
|
|
||||||
#define LED_RED_PORTx (PortA)
|
#define LED_RED_PORTx (PortA)
|
||||||
#define LED_RED_PINx (Pin08)
|
#define LED_RED_PINx (Pin09)
|
||||||
#define LED_RED_ON() PORT_SetBits(LED_RED_PORTx, LED_RED_PINx)//拉高
|
#define LED_RED_ON() PORT_SetBits(LED_RED_PORTx, LED_RED_PINx)//拉高
|
||||||
#define LED_RED_OFF() PORT_ResetBits(LED_RED_PORTx, LED_RED_PINx)//拉低
|
#define LED_RED_OFF() PORT_ResetBits(LED_RED_PORTx, LED_RED_PINx)//拉低
|
||||||
|
|
||||||
|
|||||||
@@ -3,34 +3,25 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "bsp.h"
|
#include "bsp.h"
|
||||||
|
|
||||||
|
|
||||||
#define USE_FILE_SYSTEM 1
|
|
||||||
#define SDCARD_BLOCK_MAX (10000)
|
|
||||||
|
|
||||||
#define OSC_CNT 40
|
#define OSC_CNT 40
|
||||||
#define SLOPE_CNT 20
|
#define SLOPE_CNT 20
|
||||||
|
|
||||||
#define SLOPE_VPT 1000
|
|
||||||
#define PRESS_VPT 3
|
#define PRESS_VPT 3
|
||||||
#define FOLLOW_VPT 10
|
#define FOLLOW_VPT 10
|
||||||
#define SHIELD_VPT 5000
|
#define SHIELD_VPT 8000
|
||||||
#define EME_STOP_VPT 4000
|
#define EME_STOP_VPT 4000
|
||||||
#define CENTRE_VPT 2000
|
#define CENTRE_VPT 8000
|
||||||
|
#define CENTRE_SHIELD_VPT 2000
|
||||||
|
|
||||||
#define STOP_TIME_MS 500
|
#define STOP_TIME_MS 500
|
||||||
|
#define CENT_TIME_MS 200
|
||||||
#define RUN_TIME_MS 0
|
#define RUN_TIME_MS 0
|
||||||
#define EME_START_MS 0
|
#define EME_START_MS 0
|
||||||
#define EME_STOP_MS 2000
|
#define EME_STOP_MS 2000
|
||||||
#define SLOPE_START_MS 3000
|
|
||||||
|
|
||||||
#define TRAVEL_TIME_MS 30000
|
#define BDC_STOP() (SET_TWIN_BIT0(),SET_TWIN_BIT1())
|
||||||
|
#define BDC_DOWN() (SET_TWIN_BIT0(),CLR_TWIN_BIT1())
|
||||||
#define PEAK 1200 //1200mm
|
#define BDC_UP() (SET_TWIN_BIT1(),CLR_TWIN_BIT0())
|
||||||
#define VALLEY 720 //720mm
|
|
||||||
|
|
||||||
#define BDC_STOP() (SET_TWIN_BIT0(),SET_TWIN_BIT1())
|
|
||||||
#define BDC_DOWN() (SET_TWIN_BIT0(),CLR_TWIN_BIT1())
|
|
||||||
#define BDC_UP() (SET_TWIN_BIT1(),CLR_TWIN_BIT0())
|
|
||||||
|
|
||||||
//#define BDC_STOP() Motor_Control(MOTOR_CMD_STOP)
|
//#define BDC_STOP() Motor_Control(MOTOR_CMD_STOP)
|
||||||
//#define BDC_UP() Motor_Control(MOTOR_CMD_FORWARD)
|
//#define BDC_UP() Motor_Control(MOTOR_CMD_FORWARD)
|
||||||
@@ -47,7 +38,6 @@ typedef enum {
|
|||||||
|
|
||||||
/*设备阈值*/
|
/*设备阈值*/
|
||||||
typedef struct{
|
typedef struct{
|
||||||
int32_t Slope_VPT;
|
|
||||||
int32_t Stop_VPT;
|
int32_t Stop_VPT;
|
||||||
|
|
||||||
int32_t LeftUpVPT;//左上设备阈值
|
int32_t LeftUpVPT;//左上设备阈值
|
||||||
@@ -66,16 +56,8 @@ typedef struct{
|
|||||||
int32_t RightLow_Org_AdZero;//右下设备原始AD零点
|
int32_t RightLow_Org_AdZero;//右下设备原始AD零点
|
||||||
}ADTrack_t;
|
}ADTrack_t;
|
||||||
typedef struct{//电机参数
|
typedef struct{//电机参数
|
||||||
bool InitialFlag;//初始标志位
|
|
||||||
bool RestFlag;
|
bool RestFlag;
|
||||||
bool CaliFlag;
|
|
||||||
bool LoopOne;//循环一次标志位
|
|
||||||
int16_t Current_height;//当前高度mm
|
int16_t Current_height;//当前高度mm
|
||||||
int16_t CaliNum;//标校数量
|
|
||||||
int32_t LU_HeightStress[488];//左上传感器对应高度应力
|
|
||||||
int32_t LL_HeightStress[488];//左下传感器对应高度应力
|
|
||||||
int32_t RU_HeightStress[488];//右上传感器对应高度应力
|
|
||||||
int32_t RL_HeightStress[488];//右上传感器对应高度应力
|
|
||||||
}MotorPara_t;
|
}MotorPara_t;
|
||||||
/*数据读取状态机*/
|
/*数据读取状态机*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
@@ -97,22 +79,9 @@ typedef enum {
|
|||||||
APP_STATUS_IDLE,
|
APP_STATUS_IDLE,
|
||||||
APP_STATUS_ON,
|
APP_STATUS_ON,
|
||||||
APP_STATUS_OFF,
|
APP_STATUS_OFF,
|
||||||
APP_STATUS_MOTOR_INIT,
|
|
||||||
APP_STATUS_WAIT_MOTOR_INIT,
|
|
||||||
APP_STATUS_WAIT_MOTOR_CALI_UP,
|
|
||||||
APP_STATUS_WAIT_MOTOR_CALI_DOWN,
|
|
||||||
APP_STATUS_WAIT_STEADY,
|
|
||||||
APP_STATUS_ZERO_MARKING,
|
APP_STATUS_ZERO_MARKING,
|
||||||
APP_STATUS_HEIGHT_CONTROL,
|
|
||||||
}AppStatus_m;
|
}AppStatus_m;
|
||||||
|
|
||||||
typedef struct{
|
|
||||||
__IO uint16_t rPayLen;
|
|
||||||
__IO bool HeaderFrame;
|
|
||||||
__IO uint16_t RxLen;
|
|
||||||
uint8_t RxBuff[10];
|
|
||||||
}Uart1Rx_t;
|
|
||||||
|
|
||||||
typedef struct{
|
typedef struct{
|
||||||
__IO uint16_t rPayLen;
|
__IO uint16_t rPayLen;
|
||||||
__IO bool HeaderFrame;
|
__IO bool HeaderFrame;
|
||||||
@@ -124,25 +93,20 @@ typedef struct {
|
|||||||
AppStatus_m Status;//状态
|
AppStatus_m Status;//状态
|
||||||
ReadStatus_m RStatus;
|
ReadStatus_m RStatus;
|
||||||
AppPara_T Para;
|
AppPara_T Para;
|
||||||
Uart1Rx_t RxUart1Data;
|
|
||||||
Uart3Rx_t RxUart3Data;
|
Uart3Rx_t RxUart3Data;
|
||||||
|
|
||||||
ADTrack_t ADTrack;
|
ADTrack_t ADTrack;
|
||||||
MotorPara_t MotorPara;
|
MotorPara_t MotorPara;
|
||||||
uint32_t TD1mSDelayCnt;
|
uint32_t TD1mSDelayCnt;
|
||||||
uint32_t Read1mSDelayCnt;
|
uint32_t Read1mSDelayCnt;
|
||||||
uint32_t Uart1Delay1mSCnt;
|
|
||||||
uint32_t Uart3RxTimeOut1mSCnt;
|
uint32_t Uart3RxTimeOut1mSCnt;
|
||||||
uint32_t StopCollDelay1mSCnt;
|
uint32_t StopCollDelay1mSCnt;
|
||||||
uint32_t RunCollDelay1mSCnt;
|
uint32_t RunCollDelay1mSCnt;
|
||||||
|
uint32_t CentCollDelay1mSCnt;
|
||||||
uint32_t EmergencyDelay1mSCnt;
|
uint32_t EmergencyDelay1mSCnt;
|
||||||
uint32_t SlopeCollDelay1mSCnt;
|
|
||||||
uint32_t CailUp1mSCnt;
|
|
||||||
uint32_t HeightContRolCnt;
|
|
||||||
uint8_t FeedDogDlyCnt;
|
uint8_t FeedDogDlyCnt;
|
||||||
|
|
||||||
bool CaliZeroFlag;//校零标志位
|
bool CaliZeroFlag;//校零标志位
|
||||||
bool SideFlag;//侧压标志位
|
|
||||||
bool UpFlag;//上升标志位
|
bool UpFlag;//上升标志位
|
||||||
bool DownFlag;//下降标志位
|
bool DownFlag;//下降标志位
|
||||||
bool StopFlag;//停止标志位
|
bool StopFlag;//停止标志位
|
||||||
@@ -165,8 +129,6 @@ typedef struct {
|
|||||||
int32_t LeftLowCS1237_SlopeArray[SLOPE_CNT];
|
int32_t LeftLowCS1237_SlopeArray[SLOPE_CNT];
|
||||||
int32_t RightUpCS1237_SlopeArray[SLOPE_CNT];
|
int32_t RightUpCS1237_SlopeArray[SLOPE_CNT];
|
||||||
int32_t RightLowCS1237_SlopeArray[SLOPE_CNT];
|
int32_t RightLowCS1237_SlopeArray[SLOPE_CNT];
|
||||||
|
|
||||||
bool WaitFlag;
|
|
||||||
}AppDetect_t;
|
}AppDetect_t;
|
||||||
extern AppDetect_t App;
|
extern AppDetect_t App;
|
||||||
|
|
||||||
|
|||||||
+225
-501
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user