您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 其它行业文档 > cortex-m3 uCOS-II安装使用文档
µC/OS-IIandARMCortex-M3ProcessorsApplicationNote1.002.003.003.013.023.02.013.02.023.02.033.02.043.02.053.02.063.033.03.013.03.023.03.033.03.043.03.053.03.063.043.04.013.04.023.04.033.04.043.04.053.04.063.054.004.014.024.035.005.015.026.006.01µC/OS-IIfortheARMCortex-M3ProcessorsTableofContentsIntroduction...................................................................................................4TheARMCortex-M3programmer’smodel...................................................6µC/OS-IIPortfortheARMCortex-M3processors......................................9DirectoriesandFiles...................................................................................10OS_CPU.H.................................................................................................11OS_CPU.H,macrosfor‘externals’.............................................................11OS_CPU.H,DataTypes.............................................................................11OS_CPU.H,CriticalSections......................................................................12OS_CPU.H,Stackgrowth..........................................................................12OS_CPU.H,TaskLevelContextSwitch.....................................................13OS_CPU.H,FunctionPrototypes...............................................................13OS_CPU_C.C.............................................................................................14OS_CPU_C.C,OSInitHookBegin().............................................................14OS_CPU_C.C,OSTaskCreateHook()........................................................15OS_CPU_C.C,OSTaskStkInit().................................................................16OS_CPU_C.C,OSTaskSwHook()..............................................................18OS_CPU_C.C,OSTimeTickHook()............................................................18OS_CPU_C.C,OS_CPU_SysTickInit()......................................................19OS_CPU_A.ASM........................................................................................20OS_CPU_A.ASM,OS_CPU_SR_Save()...................................................20OS_CPU_A.ASM,OS_CPU_SR_Restore()...............................................20OS_CPU_A.ASM,OSStartHighRdy().........................................................21OS_CPU_A.ASM,OSCtxSw()....................................................................22OS_CPU_A.ASM,OSIntCtxSw()................................................................23OS_CPU_A.ASM,OS_CPU_PendSVHandler().........................................23OS_DBG.C.................................................................................................27ExceptionVectorTable..............................................................................28Exception/InterruptHandlingSequence...................................................29InterruptControllers....................................................................................29InterruptServiceRoutines..........................................................................29ApplicationCode........................................................................................30APP.C,APP.HandAPP_CFG.H................................................................31INCLUDES.H..............................................................................................34BSP(BoardSupportPackage)...................................................................35BSP(BoardSupportPackage)–LEDManagement..................................3527.00µC/OS-IIforARMCortex-M3ProcessorsConclusion..................................................................................................36Licensing...................................................................................................................37References...................................................................................................................37Contacts...................................................................................................................37Notes...................................................................................................................3831.00IntroductionµC/OS-IIfortheARMCortex-M3ProcessorsARMhasbeenworkingonanewarchitecturecalledtheCortexforanumberofyears.Duringdevelopment,µC/OS-IIwasusedtovalidatesomeofthedesignaspectsandwasusedasasourceofideastocreatenewcapabilitiestosupportRTOSs.Inotherwords,µC/OS-IIwasthefirstRTOSportedtotheCortex.Thisapplicationnotedescribesthe‘official’MicriumportforµC/OS-IIontheCortex-M3processor.Figure1-1showsablockdiagramshowingtherelationshipbetweenyourapplication,µC/OS-II,theportcodeandtheBSP(BoardSupportPackage).Relevantsectionsofthisapplicationnotearereferencedonthefigure.4Section5µC/OS-IIBookµC/OS-IIforARMCortex-M3ProcessorsYourApplicationAPP.CAPP_VECT.CAPP_CFG.HINCLUDES.HOS_CFG.HµC/OS-IIOS_CORE.COS_FLAG.COS_MBOX.COS_MEM.COS_MUTEX.COS_Q.COS_SEM.COS_TASK.COS_TIME.COS_TMR.CuCOS_II.Hµ
本文标题:cortex-m3 uCOS-II安装使用文档
链接地址:https://www.777doc.com/doc-6109593 .html