@@ -0,0 +1,496 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<ProjectOpt xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_optx.xsd">
|
||||
|
||||
<SchemaVersion>1.0</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Extensions>
|
||||
<cExt>*.c</cExt>
|
||||
<aExt>*.s*; *.src; *.a*</aExt>
|
||||
<oExt>*.obj; *.o</oExt>
|
||||
<lExt>*.lib</lExt>
|
||||
<tExt>*.txt; *.h; *.inc</tExt>
|
||||
<pExt>*.plm</pExt>
|
||||
<CppX>*.cpp</CppX>
|
||||
<nMigrate>0</nMigrate>
|
||||
</Extensions>
|
||||
|
||||
<DaveTm>
|
||||
<dwLowDateTime>0</dwLowDateTime>
|
||||
<dwHighDateTime>0</dwHighDateTime>
|
||||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>1</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
<CLKADS>48000000</CLKADS>
|
||||
<OPTTT>
|
||||
<gFlags>1</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></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>1</IsCurrentTarget>
|
||||
</OPTFL>
|
||||
<CpuCode>18</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>1</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>5</nTsel>
|
||||
<sDll></sDll>
|
||||
<sDllPa></sDllPa>
|
||||
<sDlgDll></sDlgDll>
|
||||
<sDlgPa></sDlgPa>
|
||||
<sIfile></sIfile>
|
||||
<tDll></tDll>
|
||||
<tDllPa></tDllPa>
|
||||
<tDlgDll></tDlgDll>
|
||||
<tDlgPa></tDlgPa>
|
||||
<tIfile></tIfile>
|
||||
<pMon>STLink\ST-LINKIII-KEIL_SWO.dll</pMon>
|
||||
</DebugOpt>
|
||||
<TargetDriverDllRegistry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>UL2CM3</Key>
|
||||
<Name>UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0STM32F0xx_16 -FS08000000 -FL04000 -FP0($$Device:STM32F030F4Px$CMSIS\Flash\STM32F0xx_16.FLM))</Name>
|
||||
</SetRegEntry>
|
||||
<SetRegEntry>
|
||||
<Number>0</Number>
|
||||
<Key>ST-LINKIII-KEIL_SWO</Key>
|
||||
<Name>-U56FF6B064884525045400187 -O2254 -SF10000 -C0 -A0 -I0 -HNlocalhost -HP7184 -P2 -N00("ARM CoreSight SW-DP (ARM Core") -D00(0BB11477) -L00(0) -TO131090 -TC10000000 -TT10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC800 -FN1 -FF0STM32F0xx_16.FLM -FS08000000 -FL04000 -FP0($$Device:STM32F030F4Px$CMSIS\Flash\STM32F0xx_16.FLM)</Name>
|
||||
</SetRegEntry>
|
||||
</TargetDriverDllRegistry>
|
||||
<Breakpoint/>
|
||||
<Tracepoint>
|
||||
<THDelay>0</THDelay>
|
||||
</Tracepoint>
|
||||
<DebugFlag>
|
||||
<trace>0</trace>
|
||||
<periodic>1</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>0</EnableFlashSeq>
|
||||
<EnableLog>0</EnableLog>
|
||||
<Protocol>2</Protocol>
|
||||
<DbgClock>10000000</DbgClock>
|
||||
</DebugDescription>
|
||||
</TargetOption>
|
||||
</Target>
|
||||
|
||||
<Group>
|
||||
<GroupName>Application/MDK-ARM</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>1</GroupNumber>
|
||||
<FileNumber>1</FileNumber>
|
||||
<FileType>2</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>startup_stm32f030x6.s</PathWithFileName>
|
||||
<FilenameWithoutPath>startup_stm32f030x6.s</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Application/User</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>2</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Src/main.c</PathWithFileName>
|
||||
<FilenameWithoutPath>main.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>3</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Src/stm32f0xx_it.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_it.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>2</GroupNumber>
|
||||
<FileNumber>4</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Src/stm32f0xx_hal_msp.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_msp.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Drivers/STM32F0xx_HAL_Driver</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>5</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_i2c.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>6</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_i2c_ex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>7</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_rcc.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>8</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_rcc_ex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>9</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>10</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_gpio.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>11</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_dma.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>12</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_cortex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>13</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_pwr.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>14</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_pwr_ex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>15</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_flash.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>16</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_flash_ex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>17</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_exti.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>18</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_tim.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>3</GroupNumber>
|
||||
<FileNumber>19</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c</PathWithFileName>
|
||||
<FilenameWithoutPath>stm32f0xx_hal_tim_ex.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>Drivers/CMSIS</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>4</GroupNumber>
|
||||
<FileNumber>20</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>../Src/system_stm32f0xx.c</PathWithFileName>
|
||||
<FilenameWithoutPath>system_stm32f0xx.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>drivce</GroupName>
|
||||
<tvExp>1</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>0</RteFlg>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>21</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\device\c.c</PathWithFileName>
|
||||
<FilenameWithoutPath>c.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
<File>
|
||||
<GroupNumber>5</GroupNumber>
|
||||
<FileNumber>22</FileNumber>
|
||||
<FileType>1</FileType>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<bDave2>0</bDave2>
|
||||
<PathWithFileName>.\device\mpu6050.c</PathWithFileName>
|
||||
<FilenameWithoutPath>mpu6050.c</FilenameWithoutPath>
|
||||
<RteFlg>0</RteFlg>
|
||||
<bShared>0</bShared>
|
||||
</File>
|
||||
</Group>
|
||||
|
||||
<Group>
|
||||
<GroupName>::CMSIS</GroupName>
|
||||
<tvExp>0</tvExp>
|
||||
<tvExpOptDlg>0</tvExpOptDlg>
|
||||
<cbSel>0</cbSel>
|
||||
<RteFlg>1</RteFlg>
|
||||
</Group>
|
||||
|
||||
</ProjectOpt>
|
||||
@@ -0,0 +1,537 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
<Project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="project_projx.xsd">
|
||||
|
||||
<SchemaVersion>2.1</SchemaVersion>
|
||||
|
||||
<Header>### uVision Project, (C) Keil Software</Header>
|
||||
|
||||
<Targets>
|
||||
<Target>
|
||||
<TargetName>1</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<pCCUsed>5060750::V5.06 update 6 (build 750)::ARMCC</pCCUsed>
|
||||
<uAC6>0</uAC6>
|
||||
<TargetOption>
|
||||
<TargetCommonOption>
|
||||
<Device>STM32F030F4Px</Device>
|
||||
<Vendor>STMicroelectronics</Vendor>
|
||||
<PackID>Keil.STM32F0xx_DFP.2.1.0</PackID>
|
||||
<PackURL>http://www.keil.com/pack/</PackURL>
|
||||
<Cpu>IRAM(0x20000000-0x20000FFF) IROM(0x8000000-0x8003FFF) CLOCK(8000000) CPUTYPE("Cortex-M0")</Cpu>
|
||||
<FlashUtilSpec></FlashUtilSpec>
|
||||
<StartupFile></StartupFile>
|
||||
<FlashDriverDll></FlashDriverDll>
|
||||
<DeviceId></DeviceId>
|
||||
<RegisterFile></RegisterFile>
|
||||
<MemoryEnv></MemoryEnv>
|
||||
<Cmp></Cmp>
|
||||
<Asm></Asm>
|
||||
<Linker></Linker>
|
||||
<OHString></OHString>
|
||||
<InfinionOptionDll></InfinionOptionDll>
|
||||
<SLE66CMisc></SLE66CMisc>
|
||||
<SLE66AMisc></SLE66AMisc>
|
||||
<SLE66LinkerMisc></SLE66LinkerMisc>
|
||||
<SFDFile>$$Device:STM32F030F4Px$CMSIS\SVD\STM32F0x0.svd</SFDFile>
|
||||
<bCustSvd>0</bCustSvd>
|
||||
<UseEnv>0</UseEnv>
|
||||
<BinPath></BinPath>
|
||||
<IncludePath></IncludePath>
|
||||
<LibPath></LibPath>
|
||||
<RegisterFilePath></RegisterFilePath>
|
||||
<DBRegisterFilePath></DBRegisterFilePath>
|
||||
<TargetStatus>
|
||||
<Error>0</Error>
|
||||
<ExitCodeStop>0</ExitCodeStop>
|
||||
<ButtonStop>0</ButtonStop>
|
||||
<NotGenerated>0</NotGenerated>
|
||||
<InvalidFlash>1</InvalidFlash>
|
||||
</TargetStatus>
|
||||
<OutputDirectory>1\</OutputDirectory>
|
||||
<OutputName>1</OutputName>
|
||||
<CreateExecutable>1</CreateExecutable>
|
||||
<CreateLib>0</CreateLib>
|
||||
<CreateHexFile>1</CreateHexFile>
|
||||
<DebugInformation>1</DebugInformation>
|
||||
<BrowseInformation>1</BrowseInformation>
|
||||
<ListingPath></ListingPath>
|
||||
<HexFormatSelection>1</HexFormatSelection>
|
||||
<Merge32K>0</Merge32K>
|
||||
<CreateBatchFile>0</CreateBatchFile>
|
||||
<BeforeCompile>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopU1X>0</nStopU1X>
|
||||
<nStopU2X>0</nStopU2X>
|
||||
</BeforeCompile>
|
||||
<BeforeMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopB1X>0</nStopB1X>
|
||||
<nStopB2X>0</nStopB2X>
|
||||
</BeforeMake>
|
||||
<AfterMake>
|
||||
<RunUserProg1>0</RunUserProg1>
|
||||
<RunUserProg2>0</RunUserProg2>
|
||||
<UserProg1Name></UserProg1Name>
|
||||
<UserProg2Name></UserProg2Name>
|
||||
<UserProg1Dos16Mode>0</UserProg1Dos16Mode>
|
||||
<UserProg2Dos16Mode>0</UserProg2Dos16Mode>
|
||||
<nStopA1X>0</nStopA1X>
|
||||
<nStopA2X>0</nStopA2X>
|
||||
</AfterMake>
|
||||
<SelectedForBatchBuild>0</SelectedForBatchBuild>
|
||||
<SVCSIdString></SVCSIdString>
|
||||
</TargetCommonOption>
|
||||
<CommonProperty>
|
||||
<UseCPPCompiler>0</UseCPPCompiler>
|
||||
<RVCTCodeConst>0</RVCTCodeConst>
|
||||
<RVCTZI>0</RVCTZI>
|
||||
<RVCTOtherData>0</RVCTOtherData>
|
||||
<ModuleSelection>0</ModuleSelection>
|
||||
<IncludeInBuild>1</IncludeInBuild>
|
||||
<AlwaysBuild>0</AlwaysBuild>
|
||||
<GenerateAssemblyFile>0</GenerateAssemblyFile>
|
||||
<AssembleAssemblyFile>0</AssembleAssemblyFile>
|
||||
<PublicsOnly>0</PublicsOnly>
|
||||
<StopOnExitCode>3</StopOnExitCode>
|
||||
<CustomArgument></CustomArgument>
|
||||
<IncludeLibraryModules></IncludeLibraryModules>
|
||||
<ComprImg>0</ComprImg>
|
||||
</CommonProperty>
|
||||
<DllOption>
|
||||
<SimDllName>SARMCM3.DLL</SimDllName>
|
||||
<SimDllArguments>-REMAP</SimDllArguments>
|
||||
<SimDlgDll>DARMCM1.DLL</SimDlgDll>
|
||||
<SimDlgDllArguments>-pCM0</SimDlgDllArguments>
|
||||
<TargetDllName>SARMCM3.DLL</TargetDllName>
|
||||
<TargetDllArguments></TargetDllArguments>
|
||||
<TargetDlgDll>TARMCM1.DLL</TargetDlgDll>
|
||||
<TargetDlgDllArguments>-pCM0</TargetDlgDllArguments>
|
||||
</DllOption>
|
||||
<DebugOption>
|
||||
<OPTHX>
|
||||
<HexSelection>1</HexSelection>
|
||||
<HexRangeLowAddress>0</HexRangeLowAddress>
|
||||
<HexRangeHighAddress>0</HexRangeHighAddress>
|
||||
<HexOffset>0</HexOffset>
|
||||
<Oh166RecLen>16</Oh166RecLen>
|
||||
</OPTHX>
|
||||
</DebugOption>
|
||||
<Utilities>
|
||||
<Flash1>
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<Capability>1</Capability>
|
||||
<DriverSelection>4107</DriverSelection>
|
||||
</Flash1>
|
||||
<bUseTDR>1</bUseTDR>
|
||||
<Flash2>STLink\ST-LINKIII-KEIL_SWO.dll</Flash2>
|
||||
<Flash3></Flash3>
|
||||
<Flash4></Flash4>
|
||||
<pFcarmOut></pFcarmOut>
|
||||
<pFcarmGrp></pFcarmGrp>
|
||||
<pFcArmRoot></pFcArmRoot>
|
||||
<FcArmLst>0</FcArmLst>
|
||||
</Utilities>
|
||||
<TargetArmAds>
|
||||
<ArmAdsMisc>
|
||||
<GenerateListings>0</GenerateListings>
|
||||
<asHll>1</asHll>
|
||||
<asAsm>1</asAsm>
|
||||
<asMacX>1</asMacX>
|
||||
<asSyms>1</asSyms>
|
||||
<asFals>1</asFals>
|
||||
<asDbgD>1</asDbgD>
|
||||
<asForm>1</asForm>
|
||||
<ldLst>0</ldLst>
|
||||
<ldmm>1</ldmm>
|
||||
<ldXref>1</ldXref>
|
||||
<BigEnd>0</BigEnd>
|
||||
<AdsALst>1</AdsALst>
|
||||
<AdsACrf>1</AdsACrf>
|
||||
<AdsANop>0</AdsANop>
|
||||
<AdsANot>0</AdsANot>
|
||||
<AdsLLst>1</AdsLLst>
|
||||
<AdsLmap>1</AdsLmap>
|
||||
<AdsLcgr>1</AdsLcgr>
|
||||
<AdsLsym>1</AdsLsym>
|
||||
<AdsLszi>1</AdsLszi>
|
||||
<AdsLtoi>1</AdsLtoi>
|
||||
<AdsLsun>1</AdsLsun>
|
||||
<AdsLven>1</AdsLven>
|
||||
<AdsLsxf>1</AdsLsxf>
|
||||
<RvctClst>0</RvctClst>
|
||||
<GenPPlst>0</GenPPlst>
|
||||
<AdsCpuType>"Cortex-M0"</AdsCpuType>
|
||||
<RvctDeviceName></RvctDeviceName>
|
||||
<mOS>0</mOS>
|
||||
<uocRom>0</uocRom>
|
||||
<uocRam>0</uocRam>
|
||||
<hadIROM>1</hadIROM>
|
||||
<hadIRAM>1</hadIRAM>
|
||||
<hadXRAM>0</hadXRAM>
|
||||
<uocXRam>0</uocXRam>
|
||||
<RvdsVP>0</RvdsVP>
|
||||
<RvdsMve>0</RvdsMve>
|
||||
<hadIRAM2>0</hadIRAM2>
|
||||
<hadIROM2>0</hadIROM2>
|
||||
<StupSel>8</StupSel>
|
||||
<useUlib>1</useUlib>
|
||||
<EndSel>0</EndSel>
|
||||
<uLtcg>0</uLtcg>
|
||||
<nSecure>0</nSecure>
|
||||
<RoSelD>3</RoSelD>
|
||||
<RwSelD>3</RwSelD>
|
||||
<CodeSel>0</CodeSel>
|
||||
<OptFeed>0</OptFeed>
|
||||
<NoZi1>0</NoZi1>
|
||||
<NoZi2>0</NoZi2>
|
||||
<NoZi3>0</NoZi3>
|
||||
<NoZi4>0</NoZi4>
|
||||
<NoZi5>0</NoZi5>
|
||||
<Ro1Chk>0</Ro1Chk>
|
||||
<Ro2Chk>0</Ro2Chk>
|
||||
<Ro3Chk>0</Ro3Chk>
|
||||
<Ir1Chk>1</Ir1Chk>
|
||||
<Ir2Chk>0</Ir2Chk>
|
||||
<Ra1Chk>0</Ra1Chk>
|
||||
<Ra2Chk>0</Ra2Chk>
|
||||
<Ra3Chk>0</Ra3Chk>
|
||||
<Im1Chk>1</Im1Chk>
|
||||
<Im2Chk>0</Im2Chk>
|
||||
<OnChipMemories>
|
||||
<Ocm1>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm1>
|
||||
<Ocm2>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm2>
|
||||
<Ocm3>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm3>
|
||||
<Ocm4>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm4>
|
||||
<Ocm5>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm5>
|
||||
<Ocm6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</Ocm6>
|
||||
<IRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x1000</Size>
|
||||
</IRAM>
|
||||
<IROM>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x8000000</StartAddress>
|
||||
<Size>0x4000</Size>
|
||||
</IROM>
|
||||
<XRAM>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</XRAM>
|
||||
<OCR_RVCT1>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT1>
|
||||
<OCR_RVCT2>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT2>
|
||||
<OCR_RVCT3>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT3>
|
||||
<OCR_RVCT4>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x8000000</StartAddress>
|
||||
<Size>0x4000</Size>
|
||||
</OCR_RVCT4>
|
||||
<OCR_RVCT5>
|
||||
<Type>1</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT5>
|
||||
<OCR_RVCT6>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT6>
|
||||
<OCR_RVCT7>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT7>
|
||||
<OCR_RVCT8>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT8>
|
||||
<OCR_RVCT9>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x20000000</StartAddress>
|
||||
<Size>0x1000</Size>
|
||||
</OCR_RVCT9>
|
||||
<OCR_RVCT10>
|
||||
<Type>0</Type>
|
||||
<StartAddress>0x0</StartAddress>
|
||||
<Size>0x0</Size>
|
||||
</OCR_RVCT10>
|
||||
</OnChipMemories>
|
||||
<RvctStartVector></RvctStartVector>
|
||||
</ArmAdsMisc>
|
||||
<Cads>
|
||||
<interw>1</interw>
|
||||
<Optim>4</Optim>
|
||||
<oTime>0</oTime>
|
||||
<SplitLS>0</SplitLS>
|
||||
<OneElfS>1</OneElfS>
|
||||
<Strict>0</Strict>
|
||||
<EnumInt>0</EnumInt>
|
||||
<PlainCh>0</PlainCh>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<wLevel>2</wLevel>
|
||||
<uThumb>0</uThumb>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<uC99>1</uC99>
|
||||
<uGnu>0</uGnu>
|
||||
<useXO>0</useXO>
|
||||
<v6Lang>1</v6Lang>
|
||||
<v6LangP>1</v6LangP>
|
||||
<vShortEn>1</vShortEn>
|
||||
<vShortWch>1</vShortWch>
|
||||
<v6Lto>0</v6Lto>
|
||||
<v6WtE>0</v6WtE>
|
||||
<v6Rtti>0</v6Rtti>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define>USE_HAL_DRIVER,STM32F030x6</Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath>../Inc; ../Drivers/STM32F0xx_HAL_Driver/Inc; ../Drivers/STM32F0xx_HAL_Driver/Inc/Legacy; ../Drivers/CMSIS/Device/ST/STM32F0xx/Include; ../Drivers/CMSIS/Include; .\device</IncludePath>
|
||||
</VariousControls>
|
||||
</Cads>
|
||||
<Aads>
|
||||
<interw>1</interw>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<thumb>0</thumb>
|
||||
<SplitLS>0</SplitLS>
|
||||
<SwStkChk>0</SwStkChk>
|
||||
<NoWarn>0</NoWarn>
|
||||
<uSurpInc>0</uSurpInc>
|
||||
<useXO>0</useXO>
|
||||
<uClangAs>0</uClangAs>
|
||||
<VariousControls>
|
||||
<MiscControls></MiscControls>
|
||||
<Define></Define>
|
||||
<Undefine></Undefine>
|
||||
<IncludePath></IncludePath>
|
||||
</VariousControls>
|
||||
</Aads>
|
||||
<LDads>
|
||||
<umfTarg>1</umfTarg>
|
||||
<Ropi>0</Ropi>
|
||||
<Rwpi>0</Rwpi>
|
||||
<noStLib>0</noStLib>
|
||||
<RepFail>1</RepFail>
|
||||
<useFile>0</useFile>
|
||||
<TextAddressRange>0x08000000</TextAddressRange>
|
||||
<DataAddressRange>0x20000000</DataAddressRange>
|
||||
<pXoBase></pXoBase>
|
||||
<ScatterFile></ScatterFile>
|
||||
<IncludeLibs></IncludeLibs>
|
||||
<IncludeLibsPath></IncludeLibsPath>
|
||||
<Misc></Misc>
|
||||
<LinkerInputFile></LinkerInputFile>
|
||||
<DisabledWarnings></DisabledWarnings>
|
||||
</LDads>
|
||||
</TargetArmAds>
|
||||
</TargetOption>
|
||||
<Groups>
|
||||
<Group>
|
||||
<GroupName>Application/MDK-ARM</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>startup_stm32f030x6.s</FileName>
|
||||
<FileType>2</FileType>
|
||||
<FilePath>startup_stm32f030x6.s</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Application/User</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>main.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Src/main.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_it.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Src/stm32f0xx_it.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_msp.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Src/stm32f0xx_hal_msp.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Drivers/STM32F0xx_HAL_Driver</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_i2c.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_i2c_ex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_i2c_ex.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_rcc.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_rcc_ex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_rcc_ex.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_gpio.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_gpio.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_dma.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_dma.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_cortex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_cortex.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_pwr.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_pwr_ex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_pwr_ex.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_flash.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_flash_ex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_flash_ex.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_exti.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_exti.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_tim.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>stm32f0xx_hal_tim_ex.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Drivers/STM32F0xx_HAL_Driver/Src/stm32f0xx_hal_tim_ex.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>Drivers/CMSIS</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>system_stm32f0xx.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>../Src/system_stm32f0xx.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>drivce</GroupName>
|
||||
<Files>
|
||||
<File>
|
||||
<FileName>c.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>.\device\c.c</FilePath>
|
||||
</File>
|
||||
<File>
|
||||
<FileName>mpu6050.c</FileName>
|
||||
<FileType>1</FileType>
|
||||
<FilePath>.\device\mpu6050.c</FilePath>
|
||||
</File>
|
||||
</Files>
|
||||
</Group>
|
||||
<Group>
|
||||
<GroupName>::CMSIS</GroupName>
|
||||
</Group>
|
||||
</Groups>
|
||||
</Target>
|
||||
</Targets>
|
||||
|
||||
<RTE>
|
||||
<apis/>
|
||||
<components>
|
||||
<component Cclass="CMSIS" Cgroup="CORE" Cvendor="ARM" Cversion="4.3.0" condition="CMSIS Core">
|
||||
<package name="CMSIS" schemaVersion="1.3" url="http://www.keil.com/pack/" vendor="ARM" version="4.5.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
</components>
|
||||
<files/>
|
||||
</RTE>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,42 @@
|
||||
// File: STM32F030_070.dbgconf
|
||||
// Version: 1.0.0
|
||||
// Note: refer to STM32F030x4/x6/x8/xC, STM32F070x6/xB Reference manual (RM0360)
|
||||
// refer to STM32F030x4 STM32F030x6, STM32F030x8 STM32F030xC datasheet
|
||||
// STM32F070CB STM32F070RB, STM32F070C6 STM32F070F6 datasheet
|
||||
|
||||
// <<< Use Configuration Wizard in Context Menu >>>
|
||||
|
||||
// <h> Debug MCU configuration register (DBGMCU_CR)
|
||||
// <o.2> DBG_STANDBY <i> Debug standby mode
|
||||
// <o.1> DBG_STOP <i> Debug stop mode
|
||||
// </h>
|
||||
DbgMCU_CR = 0x00000006;
|
||||
|
||||
// <h> Debug MCU APB1 freeze register (DBGMCU_APB1_FZ)
|
||||
// <i> Reserved bits must be kept at reset value
|
||||
// <o.21> DBG_I2C1_TIMEOUT <i> I2C1 SMBUS timeout mode stopped when core is halted
|
||||
// <o.12> DBG_IWDG_STOP <i> Independent watchdog stopped when core is halted
|
||||
// <o.11> DBG_WWDG_STOP <i> Window watchdog stopped when core is halted
|
||||
// <o.10> DBG_RTC_STOP <i> RTC stopped when core is halted
|
||||
// <o.8> DBG_TIM14_STOP <i> TIM14 counter stopped when core is halted
|
||||
// <o.5> DBG_TIM7_STOP <i> TIM7 counter stopped when core is halted
|
||||
// <o.4> DBG_TIM6_STOP <i> TIM6 counter stopped when core is halted
|
||||
// <o.1> DBG_TIM3_STOP <i> TIM3 counter stopped when core is halted
|
||||
// </h>
|
||||
DbgMCU_APB1_Fz = 0x00000000;
|
||||
|
||||
// <h> Debug MCU APB2 freeze register (DBGMCU_APB2_FZ)
|
||||
// <i> Reserved bits must be kept at reset value
|
||||
// <o.18> DBG_TIM17_STOP <i> TIM17 counter stopped when core is halted
|
||||
// <o.17> DBG_TIM16_STOP <i> TIM16 counter stopped when core is halted
|
||||
// <o.16> DBG_TIM15_STOP <i> TIM15 counter stopped when core is halted
|
||||
// <o.11> DBG_TIM1_STOP <i> TIM1 counter stopped when core is halted
|
||||
// </h>
|
||||
DbgMCU_APB2_Fz = 0x00000000;
|
||||
|
||||
// <h> Flash Download Options
|
||||
// <o.0> Option Byte Loading <i> Launch the Option Byte Loading after a Flash Download by setting the OBL_LAUNCH bit (causes a reset)
|
||||
// </h>
|
||||
DoOptionByteLoading = 0x00000000;
|
||||
|
||||
// <<< end of configuration section >>>
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
/*
|
||||
* Auto generated Run-Time-Environment Configuration File
|
||||
* *** Do not modify ! ***
|
||||
*
|
||||
* Project: '1'
|
||||
* Target: '1'
|
||||
*/
|
||||
|
||||
#ifndef RTE_COMPONENTS_H
|
||||
#define RTE_COMPONENTS_H
|
||||
|
||||
|
||||
/*
|
||||
* Define the Device Header File:
|
||||
*/
|
||||
#define CMSIS_device_header "stm32f0xx.h"
|
||||
|
||||
|
||||
|
||||
#endif /* RTE_COMPONENTS_H */
|
||||
@@ -0,0 +1,615 @@
|
||||
#include "main.h"
|
||||
#include "c.h"
|
||||
#include "mpu6050.h"
|
||||
|
||||
uint8_t LD_true_1[10]={63, 6, 91, 79, 102, 109, 125, 7, 127, 111};
|
||||
uint8_t LD_true_2[10]={63, 6, 155, 143, 166, 173, 189, 7, 191, 175};
|
||||
uint8_t LD_1[10]={63,48, 155, 185, 180, 173, 175, 56, 191};
|
||||
uint8_t LD_2[10]={63,48, 91, 121, 116, 109, 111, 56, 127, 125};
|
||||
|
||||
uint8_t sbuffer[6]={0,0,0,0,0,0};
|
||||
|
||||
struct ui
|
||||
{
|
||||
uint8_t DT[2];
|
||||
uint8_t lattice[2][8][8];
|
||||
|
||||
};
|
||||
|
||||
struct ui dis=
|
||||
{
|
||||
0,0,
|
||||
{
|
||||
{
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
{1,1,1,1,1,1,1,1,},
|
||||
},
|
||||
{
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
{0,0,0,0,0,0,0,0,},
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void send_buffer()
|
||||
{
|
||||
uint8_t a,b,c;
|
||||
D(0);
|
||||
CLK(0);
|
||||
RCLK(0);
|
||||
for(b=0;b<6;b++)
|
||||
{
|
||||
c=sbuffer[b];
|
||||
for(a=0;a<8;a++)
|
||||
{
|
||||
if(c&0x80)
|
||||
{
|
||||
D(1);
|
||||
}else
|
||||
{
|
||||
D(0);
|
||||
}
|
||||
CLK(1);
|
||||
CLK(0);
|
||||
c<<=1;
|
||||
}
|
||||
}
|
||||
RCLK(1);
|
||||
RCLK(0);
|
||||
}
|
||||
|
||||
const uint16_t DEN[8]=//len
|
||||
{
|
||||
0x1000,
|
||||
0x0020,
|
||||
0x0010,
|
||||
0x0200,
|
||||
0x0004,
|
||||
0x0400,
|
||||
0x4000,
|
||||
0x8000,
|
||||
};
|
||||
const uint16_t DEP[8]=
|
||||
{
|
||||
0x0008,
|
||||
0x0040,
|
||||
0x0002,
|
||||
0x0080,
|
||||
0x0800,
|
||||
0x0001,
|
||||
0x2000,
|
||||
0x0100,
|
||||
|
||||
};
|
||||
|
||||
void dis_ui()
|
||||
{
|
||||
uint16_t temp=0,temp2=0;
|
||||
|
||||
|
||||
|
||||
|
||||
for(uint8_t y=0;y<8;y++)
|
||||
{
|
||||
temp=0;
|
||||
temp|=DEN[0]|DEN[1]|DEN[2]|DEN[3]|DEN[4]|DEN[5]|DEN[6]|DEN[7];
|
||||
temp&=~DEN[y];
|
||||
|
||||
temp2=0;
|
||||
temp2|=DEN[0]|DEN[1]|DEN[2]|DEN[3]|DEN[4]|DEN[5]|DEN[6]|DEN[7];
|
||||
temp2&=~DEN[y];
|
||||
|
||||
for(uint8_t x=0;x<8;x++)
|
||||
{
|
||||
if(dis.lattice[1][y][x]==1)
|
||||
{
|
||||
temp|=DEP[x];
|
||||
}
|
||||
if(dis.lattice[0][y][x]==1)
|
||||
{
|
||||
temp2|=DEP[x];
|
||||
}
|
||||
}
|
||||
if(y<1)//控制数字亮度 0-7
|
||||
{
|
||||
sbuffer[0]=dis.DT[1];
|
||||
sbuffer[1]=dis.DT[0];
|
||||
}else
|
||||
{
|
||||
sbuffer[0]=0;
|
||||
sbuffer[1]=0;
|
||||
}
|
||||
sbuffer[4]=temp;
|
||||
sbuffer[5]=temp>>8;
|
||||
sbuffer[3]=temp2;
|
||||
sbuffer[2]=temp2>>8;
|
||||
send_buffer();
|
||||
temp=0;
|
||||
temp|=DEN[0]|DEN[1]|DEN[2]|DEN[3]|DEN[4]|DEN[5]|DEN[6]|DEN[7];
|
||||
temp2=0;
|
||||
temp2|=DEN[0]|DEN[1]|DEN[2]|DEN[3]|DEN[4]|DEN[5]|DEN[6]|DEN[7];
|
||||
sbuffer[4]=temp;
|
||||
sbuffer[5]=temp>>8;
|
||||
sbuffer[3]=temp2;
|
||||
sbuffer[2]=temp2>>8;
|
||||
send_buffer();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
uint8_t dir=0;
|
||||
|
||||
int rend_int(int MIN_VALUE, int MAX_VALUE) //可控范围的随机数生成
|
||||
{
|
||||
return rand() % (MAX_VALUE - MIN_VALUE + 1) + MIN_VALUE; //算法,最大值取余加上最小值就是范围内的数
|
||||
}
|
||||
|
||||
uint8_t move(uint8_t map,int y,int x,uint8_t move_dir)
|
||||
{
|
||||
if(dis.lattice[map][y][x])
|
||||
{
|
||||
switch(move_dir)
|
||||
{
|
||||
case 1:
|
||||
y+=1;
|
||||
x+=1;
|
||||
if((y>7)|(x>7)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y-1][x-1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
y+=1;
|
||||
if((y>7)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y-1][x]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
y+=1;
|
||||
x-=1;
|
||||
if((y>7)|(x<0)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y-1][x+1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
x-=1;
|
||||
if((x<0)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y][x+1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
x-=1;
|
||||
y-=1;
|
||||
if((x<0)|(y<0)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y+1][x+1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
y-=1;
|
||||
if((y<0)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y+1][x]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
y-=1;
|
||||
x+=1;
|
||||
if((y<0)|(x>7)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y+1][x-1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
x+=1;
|
||||
if((x>7)|(dis.lattice[map][y][x]))
|
||||
{
|
||||
return 1;
|
||||
}else
|
||||
{
|
||||
dis.lattice[map][y][x]=1;
|
||||
dis.lattice[map][y][x-1]=0;
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
void scan()
|
||||
{
|
||||
int temp_x,temp_y;
|
||||
uint8_t temp_dir;
|
||||
|
||||
switch(dir)
|
||||
{
|
||||
case 0: //平躺状态 随机扩散
|
||||
|
||||
dis.DT[0]=0;
|
||||
dis.DT[1]=0;
|
||||
|
||||
break;
|
||||
case 1:
|
||||
for(temp_y=7;temp_y>=0;temp_y--)
|
||||
{
|
||||
for(temp_x=7;temp_x>=0;temp_x--)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,2))
|
||||
{
|
||||
move(0,temp_y,temp_x,8);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,2))
|
||||
{
|
||||
move(1,temp_y,temp_x,8);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
for(temp_y=7;temp_y>=0;temp_y--)
|
||||
{
|
||||
for(temp_x=7;temp_x>=0;temp_x--)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,3))
|
||||
{
|
||||
move(0,temp_y,temp_x,1);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,3))
|
||||
{
|
||||
move(1,temp_y,temp_x,1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
for(temp_y=7;temp_y>=0;temp_y--)
|
||||
{
|
||||
for(temp_x=0;temp_x<8;temp_x++)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,4))
|
||||
{
|
||||
move(0,temp_y,temp_x,2);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,4))
|
||||
{
|
||||
move(1,temp_y,temp_x,2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
for(temp_x=0;temp_x<8;temp_x++)
|
||||
{
|
||||
for(temp_y=0;temp_y<8;temp_y++)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,5))
|
||||
{
|
||||
move(0,temp_y,temp_x,3);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,5))
|
||||
{
|
||||
move(1,temp_y,temp_x,3);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
for(temp_x=0;temp_x<8;temp_x++)
|
||||
{
|
||||
for(temp_y=0;temp_y<8;temp_y++)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,6))
|
||||
{
|
||||
move(0,temp_y,temp_x,4);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,6))
|
||||
{
|
||||
move(1,temp_y,temp_x,4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
for(temp_y=0;temp_y<8;temp_y++)
|
||||
{
|
||||
for(temp_x=0;temp_x<8;temp_x++)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,7))
|
||||
{
|
||||
move(0,temp_y,temp_x,5);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,7))
|
||||
{
|
||||
move(1,temp_y,temp_x,5);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 7:
|
||||
for(temp_y=0;temp_y<8;temp_y++)
|
||||
{
|
||||
for(temp_x=7;temp_x>=0;temp_x--)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,8))
|
||||
{
|
||||
move(0,temp_y,temp_x,6);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,8))
|
||||
{
|
||||
move(1,temp_y,temp_x,6);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
for(temp_x=7;temp_x>=0;temp_x--)
|
||||
{
|
||||
for(temp_y=0;temp_y<8;temp_y++)
|
||||
{
|
||||
if(move(0,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(0,temp_y,temp_x,1))
|
||||
{
|
||||
move(0,temp_y,temp_x,7);
|
||||
}
|
||||
}
|
||||
if(move(1,temp_y,temp_x,dir))
|
||||
{
|
||||
if(move(1,temp_y,temp_x,1))
|
||||
{
|
||||
move(1,temp_y,temp_x,7);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
uint8_t read_map(uint8_t map)
|
||||
{
|
||||
uint8_t a=0;
|
||||
for(uint8_t y=0;y<8;y++)
|
||||
{
|
||||
for(uint8_t x=0;x<8;x++)
|
||||
{
|
||||
if(dis.lattice[map][y][x])
|
||||
{
|
||||
a++;
|
||||
}
|
||||
}
|
||||
}
|
||||
return a;
|
||||
}
|
||||
|
||||
void fuck()
|
||||
{
|
||||
uint8_t a=0;
|
||||
uint32_t tike=1000,tike2=0;
|
||||
uint16_t mup6050_flag=0;
|
||||
int ax,ay,az,gx,gy,gz,ax_of=0,ay_of=0,az_of=0,gx_of=0,gy_of=0,gz_of=0;
|
||||
int fax,fay,faz;
|
||||
HAL_Delay(150);
|
||||
mup6050_flag=MPU_Init();
|
||||
if(mup6050_flag!=0)
|
||||
{
|
||||
//kill
|
||||
while(1)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
while(1)
|
||||
{
|
||||
MPU_Get_Accelerometer(&ax,&ay,&az);
|
||||
//off set
|
||||
|
||||
ax=ax+ax_of;
|
||||
ay=ay+ay_of;
|
||||
az=az+az_of;
|
||||
|
||||
|
||||
gx=gx+gx_of;
|
||||
gy=gy+gy_of;
|
||||
gz=gz+gz_of;
|
||||
|
||||
//to g
|
||||
fax=((ax/16384.0)* 57.29577)/0.637;
|
||||
fay=((ay/16384.0)* 57.29577)/0.637;
|
||||
faz=((az/16384.0)* 57.29577)/0.637;
|
||||
|
||||
|
||||
#define det 20
|
||||
uint8_t temp1=0,temp2=0;
|
||||
if((((fax>=(360-det))&(fax<=360))|((fax>=0)&(fax<=det)))&(((fay>=(360-det))&(fay<=360))|((fay>=0)&(fay<=det))))//平躺姿态
|
||||
{
|
||||
dir=0;
|
||||
}else
|
||||
{
|
||||
/*
|
||||
一个诡异的BUG
|
||||
判断条件过多的时候会改变判断对象的值
|
||||
所以分两步判断
|
||||
*/
|
||||
temp1=0;
|
||||
temp2=0;
|
||||
if((fax>0)&(fax<90))
|
||||
{
|
||||
temp1=1;
|
||||
}
|
||||
if((fax>275)&(fax<360))
|
||||
{
|
||||
temp2=1;
|
||||
}
|
||||
|
||||
if((((fay>(360-det))&(fay<=0))|((fay>=0)&(fay<=det)))&temp1)
|
||||
{
|
||||
dir=1;
|
||||
}
|
||||
if(((fay>(45-det))&(fay<(45+det)))&temp1)
|
||||
{
|
||||
dir=8;
|
||||
}
|
||||
if((fay>(90-det))&(fay<(90+det)))
|
||||
{
|
||||
dir=7;
|
||||
}
|
||||
if(((fay>(45-det))&(fay<(45+det)))&temp2)
|
||||
{
|
||||
dir=6;
|
||||
}
|
||||
if((((fay>(360-det))&(fay<=0))|((fay>=0)&(fay<=det)))&temp2)
|
||||
{
|
||||
dir=5;
|
||||
}
|
||||
if(((fay>(315-det))&(fay<(315+det)))&temp2)
|
||||
{
|
||||
dir=4;
|
||||
}
|
||||
if((fay>(270-det))&(fay<(270+det)))
|
||||
{
|
||||
dir=3;
|
||||
}
|
||||
if(((fay>(315-det))&(fay<(315+det)))&temp1)
|
||||
{
|
||||
dir=2;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(HAL_GetTick()>tike)
|
||||
{
|
||||
tike=HAL_GetTick()+1000;
|
||||
if(dir==1||dir==2||dir==8)
|
||||
{
|
||||
if((dis.lattice[0][7][7]==1)&&dis.lattice[1][0][0]==0)
|
||||
{
|
||||
dis.lattice[0][7][7]=0;
|
||||
dis.lattice[1][0][0]=1;
|
||||
}
|
||||
a=read_map(0);
|
||||
dis.DT[0]=LD_true_1[a/10];
|
||||
dis.DT[1]=LD_true_2[a%10];
|
||||
}
|
||||
if(dir==5||dir==4||dir==6)
|
||||
{
|
||||
if((dis.lattice[1][0][0]==1)&&dis.lattice[0][7][7]==0)
|
||||
{
|
||||
dis.lattice[1][0][0]=0;
|
||||
dis.lattice[0][7][7]=1;
|
||||
}
|
||||
a=read_map(1);
|
||||
dis.DT[1]=LD_1[a/10];
|
||||
dis.DT[0]=LD_2[a%10];
|
||||
}
|
||||
}
|
||||
|
||||
if(HAL_GetTick()>tike2)
|
||||
{
|
||||
tike2=HAL_GetTick()+10;
|
||||
|
||||
scan();
|
||||
}
|
||||
|
||||
dis_ui();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
#define D(x) HAL_GPIO_WritePin(D_GPIO_Port,D_Pin,x)
|
||||
#define CLK(x) HAL_GPIO_WritePin(LCK_GPIO_Port,LCK_Pin,x)
|
||||
#define RCLK(x) HAL_GPIO_WritePin(RCK_GPIO_Port,RCK_Pin,x)
|
||||
|
||||
|
||||
|
||||
void fuck();
|
||||
@@ -0,0 +1,184 @@
|
||||
#include "main.h"
|
||||
#include "mpu6050.h"
|
||||
|
||||
extern I2C_HandleTypeDef hi2c1;
|
||||
|
||||
//IIC写一个字节
|
||||
//reg:寄存器地址
|
||||
//data:数据
|
||||
//返回值:0,正常
|
||||
// 其他,错误代码
|
||||
uint8_t MPU_Write_Byte(uint8_t reg,uint8_t data)
|
||||
{
|
||||
|
||||
unsigned char W_Data=0;
|
||||
|
||||
W_Data = data;
|
||||
HAL_I2C_Mem_Write(&hi2c1, MPU_WRITE, reg, I2C_MEMADD_SIZE_8BIT, &W_Data, 1, 300);
|
||||
|
||||
return 0;
|
||||
}
|
||||
//IIC读一个字节
|
||||
//reg:寄存器地址
|
||||
//返回值:读到的数据
|
||||
uint8_t MPU_Read_Byte(uint8_t reg)
|
||||
{
|
||||
|
||||
unsigned char R_Data=0;
|
||||
HAL_StatusTypeDef status = HAL_OK;
|
||||
status = HAL_I2C_Mem_Read(&hi2c1, MPU_READ, reg, I2C_MEMADD_SIZE_8BIT, &R_Data, 1, 300);
|
||||
if(status != HAL_OK)
|
||||
{
|
||||
}
|
||||
|
||||
return R_Data;
|
||||
}
|
||||
|
||||
|
||||
//IIC连续写
|
||||
uint8_t MPU_Write_Len(uint8_t reg,uint8_t len,uint8_t *buf)
|
||||
{
|
||||
|
||||
HAL_I2C_Mem_Write(&hi2c1, MPU_WRITE, reg, I2C_MEMADD_SIZE_8BIT, buf, len, 300);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
//IIC连续读
|
||||
//addr:器件地址
|
||||
//reg:要读取的寄存器地址
|
||||
//len:要读取的长度
|
||||
//buf:读取到的数据存储区
|
||||
//返回值:0,正常
|
||||
// 其他,错误代码
|
||||
uint8_t MPU_Read_Len(uint8_t reg,uint8_t len,uint8_t *buf)
|
||||
{
|
||||
|
||||
HAL_StatusTypeDef status = HAL_OK;
|
||||
status = HAL_I2C_Mem_Read(&hi2c1, MPU_READ, reg, I2C_MEMADD_SIZE_8BIT, buf, len, 300);
|
||||
if(status != HAL_OK)
|
||||
{
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//得到温度值
|
||||
//返回值:温度值(扩大了100倍)
|
||||
float MPU_Get_Temperature(void)
|
||||
{
|
||||
unsigned char buf[2];
|
||||
short raw;
|
||||
float temp;
|
||||
|
||||
MPU_Read_Len(MPU_TEMP_OUTH_REG,2,buf);
|
||||
raw=(buf[0]<<8)| buf[1];
|
||||
temp=(36.53+((double)raw)/340)*100;
|
||||
// temp = (long)((35 + (raw / 340)) * 65536L);
|
||||
return temp/100.0f;
|
||||
}
|
||||
//得到陀螺仪值(原始值)
|
||||
//gx,gy,gz:陀螺仪x,y,z轴的原始读数(带符号)
|
||||
//返回值:0,成功
|
||||
// 其他,错误代码
|
||||
uint8_t MPU_Get_Gyroscope(short *gx,short *gy,short *gz)
|
||||
{
|
||||
uint8_t buf[6],res;
|
||||
res=MPU_Read_Len(MPU_GYRO_XOUTH_REG,6,buf);
|
||||
if(res==0)
|
||||
{
|
||||
*gx=((uint16_t)buf[0]<<8)|buf[1];
|
||||
*gy=((uint16_t)buf[2]<<8)|buf[3];
|
||||
*gz=((uint16_t)buf[4]<<8)|buf[5];
|
||||
}
|
||||
return res;
|
||||
}
|
||||
//得到加速度值(原始值)
|
||||
//gx,gy,gz:陀螺仪x,y,z轴的原始读数(带符号)
|
||||
//返回值:0,成功
|
||||
// 其他,错误代码
|
||||
uint8_t MPU_Get_Accelerometer(int *ax,int *ay,int *az)
|
||||
{
|
||||
uint8_t buf[6],res;
|
||||
res=MPU_Read_Len(MPU_ACCEL_XOUTH_REG,6,buf);
|
||||
if(res==0)
|
||||
{
|
||||
*ax=((uint16_t)buf[0]<<8)|buf[1];
|
||||
*ay=((uint16_t)buf[2]<<8)|buf[3];
|
||||
*az=((uint16_t)buf[4]<<8)|buf[5];
|
||||
}
|
||||
return res;;
|
||||
}
|
||||
|
||||
//初始化MPU6050
|
||||
//返回值:0,成功
|
||||
// 其他,错误代码
|
||||
uint8_t MPU_Init(void)
|
||||
{
|
||||
uint8_t res;
|
||||
|
||||
MPU_Write_Byte(MPU_PWR_MGMT1_REG,0X80); //复位MPU6050
|
||||
HAL_Delay(1);
|
||||
MPU_Write_Byte(MPU_PWR_MGMT1_REG,0X00); //唤醒MPU6050
|
||||
HAL_Delay(1);
|
||||
MPU_Set_Gyro_Fsr(3); //陀螺仪传感器,±2000dps
|
||||
MPU_Set_Accel_Fsr(0); //加速度传感器,±2g
|
||||
MPU_Set_Rate(50); //设置采样率50Hz
|
||||
MPU_Write_Byte(MPU_INT_EN_REG,0X00); //关闭所有中断
|
||||
MPU_Write_Byte(MPU_USER_CTRL_REG,0X00); //I2C主模式关闭
|
||||
MPU_Write_Byte(MPU_FIFO_EN_REG,0X00); //关闭FIFO
|
||||
MPU_Write_Byte(MPU_INTBP_CFG_REG,0X80); //INT引脚低电平有效
|
||||
res=MPU_Read_Byte(MPU_DEVICE_ID_REG);
|
||||
if(res==MPU_ADDR)//器件ID正确
|
||||
{
|
||||
MPU_Write_Byte(MPU_PWR_MGMT1_REG,0X01); //设置CLKSEL,PLL X轴为参考
|
||||
MPU_Write_Byte(MPU_PWR_MGMT2_REG,0X00); //加速度与陀螺仪都工作
|
||||
MPU_Set_Rate(50); //设置采样率为50Hz
|
||||
//MPU_Set_LPF(50);
|
||||
}else return 1;
|
||||
return 0;
|
||||
}
|
||||
//设置MPU6050陀螺仪传感器满量程范围
|
||||
//fsr:0,±250dps;1,±500dps;2,±1000dps;3,±2000dps
|
||||
//返回值:0,设置成功
|
||||
// 其他,设置失败
|
||||
uint8_t MPU_Set_Gyro_Fsr(uint8_t fsr)
|
||||
{
|
||||
return MPU_Write_Byte(MPU_GYRO_CFG_REG,fsr<<3);//设置陀螺仪满量程范围
|
||||
}
|
||||
//设置MPU6050加速度传感器满量程范围
|
||||
//fsr:0,±2g;1,±4g;2,±8g;3,±16g
|
||||
//返回值:0,设置成功
|
||||
// 其他,设置失败
|
||||
uint8_t MPU_Set_Accel_Fsr(uint8_t fsr)
|
||||
{
|
||||
return MPU_Write_Byte(MPU_ACCEL_CFG_REG,fsr<<3);//设置加速度传感器满量程范围
|
||||
}
|
||||
//设置MPU6050的数字低通滤波器
|
||||
//lpf:数字低通滤波频率(Hz)
|
||||
//返回值:0,设置成功
|
||||
// 其他,设置失败
|
||||
uint8_t MPU_Set_LPF(uint16_t lpf)
|
||||
{
|
||||
uint8_t data=0;
|
||||
if(lpf>=188)data=1;
|
||||
else if(lpf>=98)data=2;
|
||||
else if(lpf>=42)data=3;
|
||||
else if(lpf>=20)data=4;
|
||||
else if(lpf>=10)data=5;
|
||||
else data=6;
|
||||
return MPU_Write_Byte(MPU_CFG_REG,data);//设置数字低通滤波器
|
||||
}
|
||||
//设置MPU6050的采样率(假定Fs=1KHz)
|
||||
//rate:4~1000(Hz)
|
||||
//返回值:0,设置成功
|
||||
// 其他,设置失败
|
||||
uint8_t MPU_Set_Rate(uint16_t rate)
|
||||
{
|
||||
uint8_t data;
|
||||
if(rate>1000)rate=1000;
|
||||
if(rate<4)rate=4;
|
||||
data=1000/rate-1;
|
||||
data=MPU_Write_Byte(MPU_SAMPLE_RATE_REG,data); //设置数字低通滤波器
|
||||
return MPU_Set_LPF(rate/2); //自动设置LPF为采样率的一半
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
#include "main.h"
|
||||
|
||||
//#define MPU_ACCEL_OFFS_REG 0X06 //accel_offs寄存器,可读取版本号,寄存器手册未提到
|
||||
//#define MPU_PROD_ID_REG 0X0C //prod id寄存器,在寄存器手册未提到
|
||||
#define MPU_SELF_TESTX_REG 0X0D //自检寄存器X
|
||||
#define MPU_SELF_TESTY_REG 0X0E //自检寄存器Y
|
||||
#define MPU_SELF_TESTZ_REG 0X0F //自检寄存器Z
|
||||
#define MPU_SELF_TESTA_REG 0X10 //自检寄存器A
|
||||
#define MPU_SAMPLE_RATE_REG 0X19 //采样频率分频器
|
||||
#define MPU_CFG_REG 0X1A //配置寄存器
|
||||
#define MPU_GYRO_CFG_REG 0X1B //陀螺仪配置寄存器
|
||||
#define MPU_ACCEL_CFG_REG 0X1C //加速度计配置寄存器
|
||||
#define MPU_MOTION_DET_REG 0X1F //运动检测阀值设置寄存器
|
||||
#define MPU_FIFO_EN_REG 0X23 //FIFO使能寄存器
|
||||
#define MPU_I2CMST_CTRL_REG 0X24 //IIC主机控制寄存器
|
||||
#define MPU_I2CSLV0_ADDR_REG 0X25 //IIC从机0器件地址寄存器
|
||||
#define MPU_I2CSLV0_REG 0X26 //IIC从机0数据地址寄存器
|
||||
#define MPU_I2CSLV0_CTRL_REG 0X27 //IIC从机0控制寄存器
|
||||
#define MPU_I2CSLV1_ADDR_REG 0X28 //IIC从机1器件地址寄存器
|
||||
#define MPU_I2CSLV1_REG 0X29 //IIC从机1数据地址寄存器
|
||||
#define MPU_I2CSLV1_CTRL_REG 0X2A //IIC从机1控制寄存器
|
||||
#define MPU_I2CSLV2_ADDR_REG 0X2B //IIC从机2器件地址寄存器
|
||||
#define MPU_I2CSLV2_REG 0X2C //IIC从机2数据地址寄存器
|
||||
#define MPU_I2CSLV2_CTRL_REG 0X2D //IIC从机2控制寄存器
|
||||
#define MPU_I2CSLV3_ADDR_REG 0X2E //IIC从机3器件地址寄存器
|
||||
#define MPU_I2CSLV3_REG 0X2F //IIC从机3数据地址寄存器
|
||||
#define MPU_I2CSLV3_CTRL_REG 0X30 //IIC从机3控制寄存器
|
||||
#define MPU_I2CSLV4_ADDR_REG 0X31 //IIC从机4器件地址寄存器
|
||||
#define MPU_I2CSLV4_REG 0X32 //IIC从机4数据地址寄存器
|
||||
#define MPU_I2CSLV4_DO_REG 0X33 //IIC从机4写数据寄存器
|
||||
#define MPU_I2CSLV4_CTRL_REG 0X34 //IIC从机4控制寄存器
|
||||
#define MPU_I2CSLV4_DI_REG 0X35 //IIC从机4读数据寄存器
|
||||
|
||||
#define MPU_I2CMST_STA_REG 0X36 //IIC主机状态寄存器
|
||||
#define MPU_INTBP_CFG_REG 0X37 //中断/旁路设置寄存器
|
||||
#define MPU_INT_EN_REG 0X38 //中断使能寄存器
|
||||
#define MPU_INT_STA_REG 0X3A //中断状态寄存器
|
||||
|
||||
#define MPU_ACCEL_XOUTH_REG 0X3B //加速度值,X轴高8位寄存器
|
||||
#define MPU_ACCEL_XOUTL_REG 0X3C //加速度值,X轴低8位寄存器
|
||||
#define MPU_ACCEL_YOUTH_REG 0X3D //加速度值,Y轴高8位寄存器
|
||||
#define MPU_ACCEL_YOUTL_REG 0X3E //加速度值,Y轴低8位寄存器
|
||||
#define MPU_ACCEL_ZOUTH_REG 0X3F //加速度值,Z轴高8位寄存器
|
||||
#define MPU_ACCEL_ZOUTL_REG 0X40 //加速度值,Z轴低8位寄存器
|
||||
|
||||
#define MPU_TEMP_OUTH_REG 0X41 //温度值高八位寄存器
|
||||
#define MPU_TEMP_OUTL_REG 0X42 //温度值低8位寄存器
|
||||
|
||||
#define MPU_GYRO_XOUTH_REG 0X43 //陀螺仪值,X轴高8位寄存器
|
||||
#define MPU_GYRO_XOUTL_REG 0X44 //陀螺仪值,X轴低8位寄存器
|
||||
#define MPU_GYRO_YOUTH_REG 0X45 //陀螺仪值,Y轴高8位寄存器
|
||||
#define MPU_GYRO_YOUTL_REG 0X46 //陀螺仪值,Y轴低8位寄存器
|
||||
#define MPU_GYRO_ZOUTH_REG 0X47 //陀螺仪值,Z轴高8位寄存器
|
||||
#define MPU_GYRO_ZOUTL_REG 0X48 //陀螺仪值,Z轴低8位寄存器
|
||||
|
||||
#define MPU_I2CSLV0_DO_REG 0X63 //IIC从机0数据寄存器
|
||||
#define MPU_I2CSLV1_DO_REG 0X64 //IIC从机1数据寄存器
|
||||
#define MPU_I2CSLV2_DO_REG 0X65 //IIC从机2数据寄存器
|
||||
#define MPU_I2CSLV3_DO_REG 0X66 //IIC从机3数据寄存器
|
||||
|
||||
#define MPU_I2CMST_DELAY_REG 0X67 //IIC主机延时管理寄存器
|
||||
#define MPU_SIGPATH_RST_REG 0X68 //信号通道复位寄存器
|
||||
#define MPU_MDETECT_CTRL_REG 0X69 //运动检测控制寄存器
|
||||
#define MPU_USER_CTRL_REG 0X6A //用户控制寄存器
|
||||
#define MPU_PWR_MGMT1_REG 0X6B //电源管理寄存器1
|
||||
#define MPU_PWR_MGMT2_REG 0X6C //电源管理寄存器2
|
||||
#define MPU_FIFO_CNTH_REG 0X72 //FIFO计数寄存器高八位
|
||||
#define MPU_FIFO_CNTL_REG 0X73 //FIFO计数寄存器低八位
|
||||
#define MPU_FIFO_RW_REG 0X74 //FIFO读写寄存器
|
||||
#define MPU_DEVICE_ID_REG 0X75 //器件ID寄存器
|
||||
|
||||
//如果AD0脚(9脚)接地,IIC地址为0X68 (不包含最低位).
|
||||
//如果接V3.3,则IIC地址为0X69 (不包含最低位).
|
||||
#define MPU_ADDR 0X68
|
||||
|
||||
|
||||
////因为开发板接GND,所以转为读写地址后,为0XD1和0XD0(如果接GND,则为0XD3和0XD2)
|
||||
#define MPU_READ 0XD3
|
||||
#define MPU_WRITE 0XD2
|
||||
|
||||
uint8_t MPU_Init(void); //初始化MPU6050
|
||||
uint8_t MPU_Write_Len(uint8_t reg,uint8_t len,uint8_t *buf); //IIC连续写
|
||||
uint8_t MPU_Read_Len(uint8_t reg,uint8_t len,uint8_t *buf); //IIC连续读
|
||||
uint8_t MPU_Write_Byte(uint8_t reg,uint8_t data); //IIC写一个字节
|
||||
uint8_t MPU_Read_Byte(uint8_t reg); //IIC读一个字节
|
||||
|
||||
uint8_t MPU_Set_Gyro_Fsr(uint8_t fsr);
|
||||
uint8_t MPU_Set_Accel_Fsr(uint8_t fsr);
|
||||
uint8_t MPU_Set_LPF(uint16_t lpf);
|
||||
uint8_t MPU_Set_Rate(uint16_t rate);
|
||||
uint8_t MPU_Set_Fifo(uint8_t sens);
|
||||
|
||||
uint8_t MPU_Get_Accelerometer(int *ax,int *ay,int *az);
|
||||
@@ -0,0 +1,778 @@
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1
|
||||
|
||||
|
||||
1 00000000 ;*******************************************************
|
||||
************************
|
||||
2 00000000 ;* File Name : startup_stm32f030x6.s
|
||||
3 00000000 ;* Author : MCD Application Team
|
||||
4 00000000 ;* Description : STM32F030x4/STM32F030x6 devices
|
||||
vector table for MDK-ARM toolchain.
|
||||
5 00000000 ;* This module performs:
|
||||
6 00000000 ;* - Set the initial SP
|
||||
7 00000000 ;* - Set the initial PC == Reset_Ha
|
||||
ndler
|
||||
8 00000000 ;* - Set the vector table entries w
|
||||
ith the exceptions ISR address
|
||||
9 00000000 ;* - Branches to __main in the C li
|
||||
brary (which eventually
|
||||
10 00000000 ;* calls main()).
|
||||
11 00000000 ;* After Reset the CortexM0 process
|
||||
or is in Thread mode,
|
||||
12 00000000 ;* priority is Privileged, and the
|
||||
Stack is set to Main.
|
||||
13 00000000 ;*******************************************************
|
||||
*************************
|
||||
14 00000000 ;* @attention
|
||||
15 00000000 ;*
|
||||
16 00000000 ;* Copyright (c) 2016 STMicroelectronics.
|
||||
17 00000000 ;* All rights reserved.
|
||||
18 00000000 ;*
|
||||
19 00000000 ;* This software component is licensed by ST under BSD 3
|
||||
-Clause license,
|
||||
20 00000000 ;* the "License"; You may not use this file except in co
|
||||
mpliance with the
|
||||
21 00000000 ;* License. You may obtain a copy of the License at:
|
||||
22 00000000 ;* opensource.org/licenses/BSD-3-
|
||||
Clause
|
||||
23 00000000 ;*
|
||||
24 00000000 ;*******************************************************
|
||||
************************
|
||||
25 00000000 ;* <<< Use Configuration Wizard in Context Menu >>>
|
||||
26 00000000 ;
|
||||
27 00000000
|
||||
28 00000000 ; Amount of memory (in bytes) allocated for Stack
|
||||
29 00000000 ; Tailor this value to your application needs
|
||||
30 00000000 ; <h> Stack Configuration
|
||||
31 00000000 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
32 00000000 ; </h>
|
||||
33 00000000
|
||||
34 00000000 00000400
|
||||
Stack_Size
|
||||
EQU 0x400
|
||||
35 00000000
|
||||
36 00000000 AREA STACK, NOINIT, READWRITE, ALIGN
|
||||
=3
|
||||
37 00000000 Stack_Mem
|
||||
SPACE Stack_Size
|
||||
38 00000400 __initial_sp
|
||||
39 00000400
|
||||
40 00000400
|
||||
41 00000400 ; <h> Heap Configuration
|
||||
42 00000400 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
43 00000400 ; </h>
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 2
|
||||
|
||||
|
||||
44 00000400
|
||||
45 00000400 00000200
|
||||
Heap_Size
|
||||
EQU 0x200
|
||||
46 00000400
|
||||
47 00000400 AREA HEAP, NOINIT, READWRITE, ALIGN=
|
||||
3
|
||||
48 00000000 __heap_base
|
||||
49 00000000 Heap_Mem
|
||||
SPACE Heap_Size
|
||||
50 00000200 __heap_limit
|
||||
51 00000200
|
||||
52 00000200 PRESERVE8
|
||||
53 00000200 THUMB
|
||||
54 00000200
|
||||
55 00000200
|
||||
56 00000200 ; Vector Table Mapped to Address 0 at Reset
|
||||
57 00000200 AREA RESET, DATA, READONLY
|
||||
58 00000000 EXPORT __Vectors
|
||||
59 00000000 EXPORT __Vectors_End
|
||||
60 00000000 EXPORT __Vectors_Size
|
||||
61 00000000
|
||||
62 00000000 00000000
|
||||
__Vectors
|
||||
DCD __initial_sp ; Top of Stack
|
||||
63 00000004 00000000 DCD Reset_Handler ; Reset Handler
|
||||
64 00000008 00000000 DCD NMI_Handler ; NMI Handler
|
||||
65 0000000C 00000000 DCD HardFault_Handler ; Hard Fault
|
||||
Handler
|
||||
66 00000010 00000000 DCD 0 ; Reserved
|
||||
67 00000014 00000000 DCD 0 ; Reserved
|
||||
68 00000018 00000000 DCD 0 ; Reserved
|
||||
69 0000001C 00000000 DCD 0 ; Reserved
|
||||
70 00000020 00000000 DCD 0 ; Reserved
|
||||
71 00000024 00000000 DCD 0 ; Reserved
|
||||
72 00000028 00000000 DCD 0 ; Reserved
|
||||
73 0000002C 00000000 DCD SVC_Handler ; SVCall Handler
|
||||
74 00000030 00000000 DCD 0 ; Reserved
|
||||
75 00000034 00000000 DCD 0 ; Reserved
|
||||
76 00000038 00000000 DCD PendSV_Handler ; PendSV Handler
|
||||
|
||||
77 0000003C 00000000 DCD SysTick_Handler
|
||||
; SysTick Handler
|
||||
78 00000040
|
||||
79 00000040 ; External Interrupts
|
||||
80 00000040 00000000 DCD WWDG_IRQHandler
|
||||
; Window Watchdog
|
||||
81 00000044 00000000 DCD 0 ; Reserved
|
||||
82 00000048 00000000 DCD RTC_IRQHandler ; RTC through EX
|
||||
TI Line
|
||||
83 0000004C 00000000 DCD FLASH_IRQHandler ; FLASH
|
||||
84 00000050 00000000 DCD RCC_IRQHandler ; RCC
|
||||
85 00000054 00000000 DCD EXTI0_1_IRQHandler
|
||||
; EXTI Line 0 and 1
|
||||
|
||||
86 00000058 00000000 DCD EXTI2_3_IRQHandler
|
||||
; EXTI Line 2 and 3
|
||||
|
||||
87 0000005C 00000000 DCD EXTI4_15_IRQHandler
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 3
|
||||
|
||||
|
||||
; EXTI Line 4 to 15
|
||||
|
||||
88 00000060 00000000 DCD 0 ; Reserved
|
||||
89 00000064 00000000 DCD DMA1_Channel1_IRQHandler
|
||||
; DMA1 Channel 1
|
||||
90 00000068 00000000 DCD DMA1_Channel2_3_IRQHandler ; DM
|
||||
A1 Channel 2 and Ch
|
||||
annel 3
|
||||
91 0000006C 00000000 DCD DMA1_Channel4_5_IRQHandler ; DM
|
||||
A1 Channel 4 and Ch
|
||||
annel 5
|
||||
92 00000070 00000000 DCD ADC1_IRQHandler ; ADC1
|
||||
93 00000074 00000000 DCD TIM1_BRK_UP_TRG_COM_IRQHandler
|
||||
; TIM1 Break, Updat
|
||||
e, Trigger and Comm
|
||||
utation
|
||||
94 00000078 00000000 DCD TIM1_CC_IRQHandler ; TIM1 Captu
|
||||
re Compare
|
||||
95 0000007C 00000000 DCD 0 ; Reserved
|
||||
96 00000080 00000000 DCD TIM3_IRQHandler ; TIM3
|
||||
97 00000084 00000000 DCD 0 ; Reserved
|
||||
98 00000088 00000000 DCD 0 ; Reserved
|
||||
99 0000008C 00000000 DCD TIM14_IRQHandler ; TIM14
|
||||
100 00000090 00000000 DCD 0 ; Reserved
|
||||
101 00000094 00000000 DCD TIM16_IRQHandler ; TIM16
|
||||
102 00000098 00000000 DCD TIM17_IRQHandler ; TIM17
|
||||
103 0000009C 00000000 DCD I2C1_IRQHandler ; I2C1
|
||||
104 000000A0 00000000 DCD 0 ; Reserved
|
||||
105 000000A4 00000000 DCD SPI1_IRQHandler ; SPI1
|
||||
106 000000A8 00000000 DCD 0 ; Reserved
|
||||
107 000000AC 00000000 DCD USART1_IRQHandler ; USART1
|
||||
108 000000B0
|
||||
109 000000B0
|
||||
110 000000B0 __Vectors_End
|
||||
111 000000B0
|
||||
112 000000B0 000000B0
|
||||
__Vectors_Size
|
||||
EQU __Vectors_End - __Vectors
|
||||
113 000000B0
|
||||
114 000000B0 AREA |.text|, CODE, READONLY
|
||||
115 00000000
|
||||
116 00000000 ; Reset handler routine
|
||||
117 00000000 Reset_Handler
|
||||
PROC
|
||||
118 00000000 EXPORT Reset_Handler [
|
||||
WEAK]
|
||||
119 00000000 IMPORT __main
|
||||
120 00000000 IMPORT SystemInit
|
||||
121 00000000 4804 LDR R0, =SystemInit
|
||||
122 00000002 4780 BLX R0
|
||||
123 00000004 4804 LDR R0, =__main
|
||||
124 00000006 4700 BX R0
|
||||
125 00000008 ENDP
|
||||
126 00000008
|
||||
127 00000008 ; Dummy Exception Handlers (infinite loops which can be
|
||||
modified)
|
||||
128 00000008
|
||||
129 00000008 NMI_Handler
|
||||
PROC
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 4
|
||||
|
||||
|
||||
130 00000008 EXPORT NMI_Handler
|
||||
[WEAK]
|
||||
131 00000008 E7FE B .
|
||||
132 0000000A ENDP
|
||||
134 0000000A HardFault_Handler
|
||||
PROC
|
||||
135 0000000A EXPORT HardFault_Handler
|
||||
[WEAK]
|
||||
136 0000000A E7FE B .
|
||||
137 0000000C ENDP
|
||||
138 0000000C SVC_Handler
|
||||
PROC
|
||||
139 0000000C EXPORT SVC_Handler
|
||||
[WEAK]
|
||||
140 0000000C E7FE B .
|
||||
141 0000000E ENDP
|
||||
142 0000000E PendSV_Handler
|
||||
PROC
|
||||
143 0000000E EXPORT PendSV_Handler
|
||||
[WEAK]
|
||||
144 0000000E E7FE B .
|
||||
145 00000010 ENDP
|
||||
146 00000010 SysTick_Handler
|
||||
PROC
|
||||
147 00000010 EXPORT SysTick_Handler
|
||||
[WEAK]
|
||||
148 00000010 E7FE B .
|
||||
149 00000012 ENDP
|
||||
150 00000012
|
||||
151 00000012 Default_Handler
|
||||
PROC
|
||||
152 00000012
|
||||
153 00000012 EXPORT WWDG_IRQHandler
|
||||
[WEAK]
|
||||
154 00000012 EXPORT RTC_IRQHandler
|
||||
[WEAK]
|
||||
155 00000012 EXPORT FLASH_IRQHandler
|
||||
[WEAK]
|
||||
156 00000012 EXPORT RCC_IRQHandler
|
||||
[WEAK]
|
||||
157 00000012 EXPORT EXTI0_1_IRQHandler
|
||||
[WEAK]
|
||||
158 00000012 EXPORT EXTI2_3_IRQHandler
|
||||
[WEAK]
|
||||
159 00000012 EXPORT EXTI4_15_IRQHandler
|
||||
[WEAK]
|
||||
160 00000012 EXPORT DMA1_Channel1_IRQHandler
|
||||
[WEAK]
|
||||
161 00000012 EXPORT DMA1_Channel2_3_IRQHandler
|
||||
[WEAK]
|
||||
162 00000012 EXPORT DMA1_Channel4_5_IRQHandler
|
||||
[WEAK]
|
||||
163 00000012 EXPORT ADC1_IRQHandler
|
||||
[WEAK]
|
||||
164 00000012 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler
|
||||
[WEAK]
|
||||
165 00000012 EXPORT TIM1_CC_IRQHandler
|
||||
[WEAK]
|
||||
166 00000012 EXPORT TIM3_IRQHandler
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 5
|
||||
|
||||
|
||||
[WEAK]
|
||||
167 00000012 EXPORT TIM14_IRQHandler
|
||||
[WEAK]
|
||||
168 00000012 EXPORT TIM16_IRQHandler
|
||||
[WEAK]
|
||||
169 00000012 EXPORT TIM17_IRQHandler
|
||||
[WEAK]
|
||||
170 00000012 EXPORT I2C1_IRQHandler
|
||||
[WEAK]
|
||||
171 00000012 EXPORT SPI1_IRQHandler
|
||||
[WEAK]
|
||||
172 00000012 EXPORT USART1_IRQHandler
|
||||
[WEAK]
|
||||
173 00000012
|
||||
174 00000012
|
||||
175 00000012 WWDG_IRQHandler
|
||||
176 00000012 RTC_IRQHandler
|
||||
177 00000012 FLASH_IRQHandler
|
||||
178 00000012 RCC_IRQHandler
|
||||
179 00000012 EXTI0_1_IRQHandler
|
||||
180 00000012 EXTI2_3_IRQHandler
|
||||
181 00000012 EXTI4_15_IRQHandler
|
||||
182 00000012 DMA1_Channel1_IRQHandler
|
||||
183 00000012 DMA1_Channel2_3_IRQHandler
|
||||
184 00000012 DMA1_Channel4_5_IRQHandler
|
||||
185 00000012 ADC1_IRQHandler
|
||||
186 00000012 TIM1_BRK_UP_TRG_COM_IRQHandler
|
||||
187 00000012 TIM1_CC_IRQHandler
|
||||
188 00000012 TIM3_IRQHandler
|
||||
189 00000012 TIM14_IRQHandler
|
||||
190 00000012 TIM16_IRQHandler
|
||||
191 00000012 TIM17_IRQHandler
|
||||
192 00000012 I2C1_IRQHandler
|
||||
193 00000012 SPI1_IRQHandler
|
||||
194 00000012 USART1_IRQHandler
|
||||
195 00000012
|
||||
196 00000012 E7FE B .
|
||||
197 00000014
|
||||
198 00000014 ENDP
|
||||
199 00000014
|
||||
200 00000014 ALIGN
|
||||
201 00000014
|
||||
202 00000014 ;*******************************************************
|
||||
************************
|
||||
203 00000014 ; User Stack and Heap initialization
|
||||
204 00000014 ;*******************************************************
|
||||
************************
|
||||
205 00000014 IF :DEF:__MICROLIB
|
||||
206 00000014
|
||||
207 00000014 EXPORT __initial_sp
|
||||
208 00000014 EXPORT __heap_base
|
||||
209 00000014 EXPORT __heap_limit
|
||||
210 00000014
|
||||
211 00000014 ELSE
|
||||
226 ENDIF
|
||||
227 00000014
|
||||
228 00000014 END
|
||||
00000000
|
||||
00000000
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 6
|
||||
|
||||
|
||||
Command Line: --debug --xref --diag_suppress=9931 --cpu=Cortex-M0 --apcs=interw
|
||||
ork --depend=1\startup_stm32f030x6.d -o1\startup_stm32f030x6.o -I.\RTE\_1 -IC:\
|
||||
Keil_v5\ARM\PACK\ARM\CMSIS\5.7.0\CMSIS\Core\Include -IC:\Keil_v5\ARM\PACK\Keil\
|
||||
STM32F0xx_DFP\2.1.0\Drivers\CMSIS\Device\ST\STM32F0xx\Include --predefine="__MI
|
||||
CROLIB SETA 1" --predefine="__UVISION_VERSION SETA 527" --predefine="_RTE_ SETA
|
||||
1" --predefine="STM32F030x6 SETA 1" --list=startup_stm32f030x6.lst startup_stm
|
||||
32f030x6.s
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
STACK 00000000
|
||||
|
||||
Symbol: STACK
|
||||
Definitions
|
||||
At line 36 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: STACK unused
|
||||
Stack_Mem 00000000
|
||||
|
||||
Symbol: Stack_Mem
|
||||
Definitions
|
||||
At line 37 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: Stack_Mem unused
|
||||
__initial_sp 00000400
|
||||
|
||||
Symbol: __initial_sp
|
||||
Definitions
|
||||
At line 38 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 62 in file startup_stm32f030x6.s
|
||||
At line 207 in file startup_stm32f030x6.s
|
||||
|
||||
3 symbols
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
HEAP 00000000
|
||||
|
||||
Symbol: HEAP
|
||||
Definitions
|
||||
At line 47 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: HEAP unused
|
||||
Heap_Mem 00000000
|
||||
|
||||
Symbol: Heap_Mem
|
||||
Definitions
|
||||
At line 49 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: Heap_Mem unused
|
||||
__heap_base 00000000
|
||||
|
||||
Symbol: __heap_base
|
||||
Definitions
|
||||
At line 48 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 208 in file startup_stm32f030x6.s
|
||||
Comment: __heap_base used once
|
||||
__heap_limit 00000200
|
||||
|
||||
Symbol: __heap_limit
|
||||
Definitions
|
||||
At line 50 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 209 in file startup_stm32f030x6.s
|
||||
Comment: __heap_limit used once
|
||||
4 symbols
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
RESET 00000000
|
||||
|
||||
Symbol: RESET
|
||||
Definitions
|
||||
At line 57 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: RESET unused
|
||||
__Vectors 00000000
|
||||
|
||||
Symbol: __Vectors
|
||||
Definitions
|
||||
At line 62 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 58 in file startup_stm32f030x6.s
|
||||
At line 112 in file startup_stm32f030x6.s
|
||||
|
||||
__Vectors_End 000000B0
|
||||
|
||||
Symbol: __Vectors_End
|
||||
Definitions
|
||||
At line 110 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 59 in file startup_stm32f030x6.s
|
||||
At line 112 in file startup_stm32f030x6.s
|
||||
|
||||
3 symbols
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
.text 00000000
|
||||
|
||||
Symbol: .text
|
||||
Definitions
|
||||
At line 114 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: .text unused
|
||||
ADC1_IRQHandler 00000012
|
||||
|
||||
Symbol: ADC1_IRQHandler
|
||||
Definitions
|
||||
At line 185 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 92 in file startup_stm32f030x6.s
|
||||
At line 163 in file startup_stm32f030x6.s
|
||||
|
||||
DMA1_Channel1_IRQHandler 00000012
|
||||
|
||||
Symbol: DMA1_Channel1_IRQHandler
|
||||
Definitions
|
||||
At line 182 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 89 in file startup_stm32f030x6.s
|
||||
At line 160 in file startup_stm32f030x6.s
|
||||
|
||||
DMA1_Channel2_3_IRQHandler 00000012
|
||||
|
||||
Symbol: DMA1_Channel2_3_IRQHandler
|
||||
Definitions
|
||||
At line 183 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 90 in file startup_stm32f030x6.s
|
||||
At line 161 in file startup_stm32f030x6.s
|
||||
|
||||
DMA1_Channel4_5_IRQHandler 00000012
|
||||
|
||||
Symbol: DMA1_Channel4_5_IRQHandler
|
||||
Definitions
|
||||
At line 184 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 91 in file startup_stm32f030x6.s
|
||||
At line 162 in file startup_stm32f030x6.s
|
||||
|
||||
Default_Handler 00000012
|
||||
|
||||
Symbol: Default_Handler
|
||||
Definitions
|
||||
At line 151 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
None
|
||||
Comment: Default_Handler unused
|
||||
EXTI0_1_IRQHandler 00000012
|
||||
|
||||
Symbol: EXTI0_1_IRQHandler
|
||||
Definitions
|
||||
At line 179 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 85 in file startup_stm32f030x6.s
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 2 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
At line 157 in file startup_stm32f030x6.s
|
||||
|
||||
EXTI2_3_IRQHandler 00000012
|
||||
|
||||
Symbol: EXTI2_3_IRQHandler
|
||||
Definitions
|
||||
At line 180 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 86 in file startup_stm32f030x6.s
|
||||
At line 158 in file startup_stm32f030x6.s
|
||||
|
||||
EXTI4_15_IRQHandler 00000012
|
||||
|
||||
Symbol: EXTI4_15_IRQHandler
|
||||
Definitions
|
||||
At line 181 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 87 in file startup_stm32f030x6.s
|
||||
At line 159 in file startup_stm32f030x6.s
|
||||
|
||||
FLASH_IRQHandler 00000012
|
||||
|
||||
Symbol: FLASH_IRQHandler
|
||||
Definitions
|
||||
At line 177 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 83 in file startup_stm32f030x6.s
|
||||
At line 155 in file startup_stm32f030x6.s
|
||||
|
||||
HardFault_Handler 0000000A
|
||||
|
||||
Symbol: HardFault_Handler
|
||||
Definitions
|
||||
At line 134 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 65 in file startup_stm32f030x6.s
|
||||
At line 135 in file startup_stm32f030x6.s
|
||||
|
||||
I2C1_IRQHandler 00000012
|
||||
|
||||
Symbol: I2C1_IRQHandler
|
||||
Definitions
|
||||
At line 192 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 103 in file startup_stm32f030x6.s
|
||||
At line 170 in file startup_stm32f030x6.s
|
||||
|
||||
NMI_Handler 00000008
|
||||
|
||||
Symbol: NMI_Handler
|
||||
Definitions
|
||||
At line 129 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 64 in file startup_stm32f030x6.s
|
||||
At line 130 in file startup_stm32f030x6.s
|
||||
|
||||
PendSV_Handler 0000000E
|
||||
|
||||
Symbol: PendSV_Handler
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 3 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
Definitions
|
||||
At line 142 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 76 in file startup_stm32f030x6.s
|
||||
At line 143 in file startup_stm32f030x6.s
|
||||
|
||||
RCC_IRQHandler 00000012
|
||||
|
||||
Symbol: RCC_IRQHandler
|
||||
Definitions
|
||||
At line 178 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 84 in file startup_stm32f030x6.s
|
||||
At line 156 in file startup_stm32f030x6.s
|
||||
|
||||
RTC_IRQHandler 00000012
|
||||
|
||||
Symbol: RTC_IRQHandler
|
||||
Definitions
|
||||
At line 176 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 82 in file startup_stm32f030x6.s
|
||||
At line 154 in file startup_stm32f030x6.s
|
||||
|
||||
Reset_Handler 00000000
|
||||
|
||||
Symbol: Reset_Handler
|
||||
Definitions
|
||||
At line 117 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 63 in file startup_stm32f030x6.s
|
||||
At line 118 in file startup_stm32f030x6.s
|
||||
|
||||
SPI1_IRQHandler 00000012
|
||||
|
||||
Symbol: SPI1_IRQHandler
|
||||
Definitions
|
||||
At line 193 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 105 in file startup_stm32f030x6.s
|
||||
At line 171 in file startup_stm32f030x6.s
|
||||
|
||||
SVC_Handler 0000000C
|
||||
|
||||
Symbol: SVC_Handler
|
||||
Definitions
|
||||
At line 138 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 73 in file startup_stm32f030x6.s
|
||||
At line 139 in file startup_stm32f030x6.s
|
||||
|
||||
SysTick_Handler 00000010
|
||||
|
||||
Symbol: SysTick_Handler
|
||||
Definitions
|
||||
At line 146 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 77 in file startup_stm32f030x6.s
|
||||
At line 147 in file startup_stm32f030x6.s
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 4 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
|
||||
TIM14_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM14_IRQHandler
|
||||
Definitions
|
||||
At line 189 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 99 in file startup_stm32f030x6.s
|
||||
At line 167 in file startup_stm32f030x6.s
|
||||
|
||||
TIM16_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM16_IRQHandler
|
||||
Definitions
|
||||
At line 190 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 101 in file startup_stm32f030x6.s
|
||||
At line 168 in file startup_stm32f030x6.s
|
||||
|
||||
TIM17_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM17_IRQHandler
|
||||
Definitions
|
||||
At line 191 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 102 in file startup_stm32f030x6.s
|
||||
At line 169 in file startup_stm32f030x6.s
|
||||
|
||||
TIM1_BRK_UP_TRG_COM_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM1_BRK_UP_TRG_COM_IRQHandler
|
||||
Definitions
|
||||
At line 186 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 93 in file startup_stm32f030x6.s
|
||||
At line 164 in file startup_stm32f030x6.s
|
||||
|
||||
TIM1_CC_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM1_CC_IRQHandler
|
||||
Definitions
|
||||
At line 187 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 94 in file startup_stm32f030x6.s
|
||||
At line 165 in file startup_stm32f030x6.s
|
||||
|
||||
TIM3_IRQHandler 00000012
|
||||
|
||||
Symbol: TIM3_IRQHandler
|
||||
Definitions
|
||||
At line 188 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 96 in file startup_stm32f030x6.s
|
||||
At line 166 in file startup_stm32f030x6.s
|
||||
|
||||
USART1_IRQHandler 00000012
|
||||
|
||||
Symbol: USART1_IRQHandler
|
||||
Definitions
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 5 Alphabetic symbol ordering
|
||||
Relocatable symbols
|
||||
|
||||
At line 194 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 107 in file startup_stm32f030x6.s
|
||||
At line 172 in file startup_stm32f030x6.s
|
||||
|
||||
WWDG_IRQHandler 00000012
|
||||
|
||||
Symbol: WWDG_IRQHandler
|
||||
Definitions
|
||||
At line 175 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 80 in file startup_stm32f030x6.s
|
||||
At line 153 in file startup_stm32f030x6.s
|
||||
|
||||
28 symbols
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
Absolute symbols
|
||||
|
||||
Heap_Size 00000200
|
||||
|
||||
Symbol: Heap_Size
|
||||
Definitions
|
||||
At line 45 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 49 in file startup_stm32f030x6.s
|
||||
Comment: Heap_Size used once
|
||||
Stack_Size 00000400
|
||||
|
||||
Symbol: Stack_Size
|
||||
Definitions
|
||||
At line 34 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 37 in file startup_stm32f030x6.s
|
||||
Comment: Stack_Size used once
|
||||
__Vectors_Size 000000B0
|
||||
|
||||
Symbol: __Vectors_Size
|
||||
Definitions
|
||||
At line 112 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 60 in file startup_stm32f030x6.s
|
||||
Comment: __Vectors_Size used once
|
||||
3 symbols
|
||||
|
||||
|
||||
|
||||
ARM Macro Assembler Page 1 Alphabetic symbol ordering
|
||||
External symbols
|
||||
|
||||
SystemInit 00000000
|
||||
|
||||
Symbol: SystemInit
|
||||
Definitions
|
||||
At line 120 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 121 in file startup_stm32f030x6.s
|
||||
Comment: SystemInit used once
|
||||
__main 00000000
|
||||
|
||||
Symbol: __main
|
||||
Definitions
|
||||
At line 119 in file startup_stm32f030x6.s
|
||||
Uses
|
||||
At line 123 in file startup_stm32f030x6.s
|
||||
Comment: __main used once
|
||||
2 symbols
|
||||
379 symbols in table
|
||||
@@ -0,0 +1,230 @@
|
||||
;*******************************************************************************
|
||||
;* File Name : startup_stm32f030x6.s
|
||||
;* Author : MCD Application Team
|
||||
;* Description : STM32F030x4/STM32F030x6 devices vector table for MDK-ARM toolchain.
|
||||
;* This module performs:
|
||||
;* - Set the initial SP
|
||||
;* - Set the initial PC == Reset_Handler
|
||||
;* - Set the vector table entries with the exceptions ISR address
|
||||
;* - Branches to __main in the C library (which eventually
|
||||
;* calls main()).
|
||||
;* After Reset the CortexM0 processor is in Thread mode,
|
||||
;* priority is Privileged, and the Stack is set to Main.
|
||||
;********************************************************************************
|
||||
;* @attention
|
||||
;*
|
||||
;* Copyright (c) 2016 STMicroelectronics.
|
||||
;* All rights reserved.
|
||||
;*
|
||||
;* This software component is licensed by ST under BSD 3-Clause license,
|
||||
;* the "License"; You may not use this file except in compliance with the
|
||||
;* License. You may obtain a copy of the License at:
|
||||
;* opensource.org/licenses/BSD-3-Clause
|
||||
;*
|
||||
;*******************************************************************************
|
||||
;* <<< Use Configuration Wizard in Context Menu >>>
|
||||
;
|
||||
|
||||
; Amount of memory (in bytes) allocated for Stack
|
||||
; Tailor this value to your application needs
|
||||
; <h> Stack Configuration
|
||||
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Stack_Size EQU 0x400
|
||||
|
||||
AREA STACK, NOINIT, READWRITE, ALIGN=3
|
||||
Stack_Mem SPACE Stack_Size
|
||||
__initial_sp
|
||||
|
||||
|
||||
; <h> Heap Configuration
|
||||
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
|
||||
; </h>
|
||||
|
||||
Heap_Size EQU 0x200
|
||||
|
||||
AREA HEAP, NOINIT, READWRITE, ALIGN=3
|
||||
__heap_base
|
||||
Heap_Mem SPACE Heap_Size
|
||||
__heap_limit
|
||||
|
||||
PRESERVE8
|
||||
THUMB
|
||||
|
||||
|
||||
; Vector Table Mapped to Address 0 at Reset
|
||||
AREA RESET, DATA, READONLY
|
||||
EXPORT __Vectors
|
||||
EXPORT __Vectors_End
|
||||
EXPORT __Vectors_Size
|
||||
|
||||
__Vectors DCD __initial_sp ; Top of Stack
|
||||
DCD Reset_Handler ; Reset Handler
|
||||
DCD NMI_Handler ; NMI Handler
|
||||
DCD HardFault_Handler ; Hard Fault Handler
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD SVC_Handler ; SVCall Handler
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD PendSV_Handler ; PendSV Handler
|
||||
DCD SysTick_Handler ; SysTick Handler
|
||||
|
||||
; External Interrupts
|
||||
DCD WWDG_IRQHandler ; Window Watchdog
|
||||
DCD 0 ; Reserved
|
||||
DCD RTC_IRQHandler ; RTC through EXTI Line
|
||||
DCD FLASH_IRQHandler ; FLASH
|
||||
DCD RCC_IRQHandler ; RCC
|
||||
DCD EXTI0_1_IRQHandler ; EXTI Line 0 and 1
|
||||
DCD EXTI2_3_IRQHandler ; EXTI Line 2 and 3
|
||||
DCD EXTI4_15_IRQHandler ; EXTI Line 4 to 15
|
||||
DCD 0 ; Reserved
|
||||
DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
|
||||
DCD DMA1_Channel2_3_IRQHandler ; DMA1 Channel 2 and Channel 3
|
||||
DCD DMA1_Channel4_5_IRQHandler ; DMA1 Channel 4 and Channel 5
|
||||
DCD ADC1_IRQHandler ; ADC1
|
||||
DCD TIM1_BRK_UP_TRG_COM_IRQHandler ; TIM1 Break, Update, Trigger and Commutation
|
||||
DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
|
||||
DCD 0 ; Reserved
|
||||
DCD TIM3_IRQHandler ; TIM3
|
||||
DCD 0 ; Reserved
|
||||
DCD 0 ; Reserved
|
||||
DCD TIM14_IRQHandler ; TIM14
|
||||
DCD 0 ; Reserved
|
||||
DCD TIM16_IRQHandler ; TIM16
|
||||
DCD TIM17_IRQHandler ; TIM17
|
||||
DCD I2C1_IRQHandler ; I2C1
|
||||
DCD 0 ; Reserved
|
||||
DCD SPI1_IRQHandler ; SPI1
|
||||
DCD 0 ; Reserved
|
||||
DCD USART1_IRQHandler ; USART1
|
||||
|
||||
|
||||
__Vectors_End
|
||||
|
||||
__Vectors_Size EQU __Vectors_End - __Vectors
|
||||
|
||||
AREA |.text|, CODE, READONLY
|
||||
|
||||
; Reset handler routine
|
||||
Reset_Handler PROC
|
||||
EXPORT Reset_Handler [WEAK]
|
||||
IMPORT __main
|
||||
IMPORT SystemInit
|
||||
LDR R0, =SystemInit
|
||||
BLX R0
|
||||
LDR R0, =__main
|
||||
BX R0
|
||||
ENDP
|
||||
|
||||
; Dummy Exception Handlers (infinite loops which can be modified)
|
||||
|
||||
NMI_Handler PROC
|
||||
EXPORT NMI_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
HardFault_Handler\
|
||||
PROC
|
||||
EXPORT HardFault_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
SVC_Handler PROC
|
||||
EXPORT SVC_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
PendSV_Handler PROC
|
||||
EXPORT PendSV_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
SysTick_Handler PROC
|
||||
EXPORT SysTick_Handler [WEAK]
|
||||
B .
|
||||
ENDP
|
||||
|
||||
Default_Handler PROC
|
||||
|
||||
EXPORT WWDG_IRQHandler [WEAK]
|
||||
EXPORT RTC_IRQHandler [WEAK]
|
||||
EXPORT FLASH_IRQHandler [WEAK]
|
||||
EXPORT RCC_IRQHandler [WEAK]
|
||||
EXPORT EXTI0_1_IRQHandler [WEAK]
|
||||
EXPORT EXTI2_3_IRQHandler [WEAK]
|
||||
EXPORT EXTI4_15_IRQHandler [WEAK]
|
||||
EXPORT DMA1_Channel1_IRQHandler [WEAK]
|
||||
EXPORT DMA1_Channel2_3_IRQHandler [WEAK]
|
||||
EXPORT DMA1_Channel4_5_IRQHandler [WEAK]
|
||||
EXPORT ADC1_IRQHandler [WEAK]
|
||||
EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler [WEAK]
|
||||
EXPORT TIM1_CC_IRQHandler [WEAK]
|
||||
EXPORT TIM3_IRQHandler [WEAK]
|
||||
EXPORT TIM14_IRQHandler [WEAK]
|
||||
EXPORT TIM16_IRQHandler [WEAK]
|
||||
EXPORT TIM17_IRQHandler [WEAK]
|
||||
EXPORT I2C1_IRQHandler [WEAK]
|
||||
EXPORT SPI1_IRQHandler [WEAK]
|
||||
EXPORT USART1_IRQHandler [WEAK]
|
||||
|
||||
|
||||
WWDG_IRQHandler
|
||||
RTC_IRQHandler
|
||||
FLASH_IRQHandler
|
||||
RCC_IRQHandler
|
||||
EXTI0_1_IRQHandler
|
||||
EXTI2_3_IRQHandler
|
||||
EXTI4_15_IRQHandler
|
||||
DMA1_Channel1_IRQHandler
|
||||
DMA1_Channel2_3_IRQHandler
|
||||
DMA1_Channel4_5_IRQHandler
|
||||
ADC1_IRQHandler
|
||||
TIM1_BRK_UP_TRG_COM_IRQHandler
|
||||
TIM1_CC_IRQHandler
|
||||
TIM3_IRQHandler
|
||||
TIM14_IRQHandler
|
||||
TIM16_IRQHandler
|
||||
TIM17_IRQHandler
|
||||
I2C1_IRQHandler
|
||||
SPI1_IRQHandler
|
||||
USART1_IRQHandler
|
||||
|
||||
B .
|
||||
|
||||
ENDP
|
||||
|
||||
ALIGN
|
||||
|
||||
;*******************************************************************************
|
||||
; User Stack and Heap initialization
|
||||
;*******************************************************************************
|
||||
IF :DEF:__MICROLIB
|
||||
|
||||
EXPORT __initial_sp
|
||||
EXPORT __heap_base
|
||||
EXPORT __heap_limit
|
||||
|
||||
ELSE
|
||||
|
||||
IMPORT __use_two_region_memory
|
||||
EXPORT __user_initial_stackheap
|
||||
|
||||
__user_initial_stackheap
|
||||
|
||||
LDR R0, = Heap_Mem
|
||||
LDR R1, =(Stack_Mem + Stack_Size)
|
||||
LDR R2, = (Heap_Mem + Heap_Size)
|
||||
LDR R3, = Stack_Mem
|
||||
BX LR
|
||||
|
||||
ALIGN
|
||||
|
||||
ENDIF
|
||||
|
||||
END
|
||||
|
||||
;************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE*****
|
||||
Reference in New Issue
Block a user