嵌入式操作系统FreeRTOS 的原理与移植实现

所需积分/C币:10 2016-10-12 09:20:39 647KB PDF
36
收藏 收藏
举报

嵌入式操作系统FreeRTOS 的原理与移植实现
4 Code / pc pxTopOiStack TopOfStack=0/*LR“/ FreeRtos x TopOfStack -=5/* R12 R3 R2 and Rl. *k FIF s pxTopOfStack port STACK_TYPE pvPa /*R0* 8/*RI1R10R9R8 R7 R6 R5 and r4.*/ C/OS-Ⅱ return px Top OfStack Offset PSR PC 高地址 LR 2 Freertos R12 STM32F10X R3 Keila R2 Rl portmacro. h port.c macro. h R11 R5 低地址 rL. c R4 Freertos px PortIng- tialisestack y Port Enter Critical vPort ExitCritical void yport Enter Critical void portDISABLE_ INTERRUPTS Offset MCU CriticalNesting++/ XPSR LR portsTACK_TYPE s px Port Initialise Stack portSTACK 2.3 TYPE px TopOIStack pdTASK_CODE xCode void pⅤ Parameters xPortsvhandler xPort Pendsvhandlei px TopOfStack si px'TopOIStack =POrLINITIAL_XPSR / Portsyhandler XPSR 7 pxTopOfStack x PorlPendSyhandler px Top OfStack portSTACK_TYPE 33 21994-2016ChinaAcademicJournalElectronicPublishingHouse.Allrightsreservedhttp://www.cnki.net witchContext mrs ro psp urrentTCB Idr r2 r3 x PortSys tick handle stmdb rO r4-rl1/ vTaskIncrement Tick trio n2/ r3r14 void x Port Sys Tickllandler void mov I0 #configMAX SYSCaLL Interrupt unsigned long ulDummy PRIORITY msr basepri 10 #if configUse preemption = l bI tAsk Switch Context portNVIC-INT-CtrL portNVIC mOV rO #o PENDSVSET msr basepri 10/ #endif Idmia sp r3 r14 alUmn portSET_INTERRUPT_ MASK Idr rl r3 FROM ISR Idr ro rl Idmia ro r4-rll /* VTaskIncrementTick msr psp ro bx r14 2.4 porICLEAR-INTERRUFT_MASK_FROM_ISR Dummy x PortsⅤ landler Freertos portBAsE_TYPE xPortStartScheduler void LC/OS Ⅱ s portNVIC-SYSPRI2 portNVIC Freer PENDSV PRI TOS STM32F103 PorLNVIC-SYSPRI2 porINVIC-SY- STICK PR / prv Setup TimerInterrupt FreeRTos 00578-1 ux CriticalNesting =0 FreeRtos ARM7 200595)-64. X Port 3 Richard Rarry. USING THE. FREERTOS REAL. TIME. KERNEI LAndler M,20094-42 vPort Start Firsttask 4 Jean I Labrosse LC/OS-I M 2005133-175 return 0 肖滨 21994-2016ChinaAcademicJournalElectronicPublishingHouse.Allrightsreservedhttp://www.cnki.net

...展开详情
立即下载
限时抽奖 低至0.43元/次
身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享王者

关注 私信
上传资源赚钱or赚积分
最新推荐
嵌入式操作系统FreeRTOS 的原理与移植实现 10积分/C币 立即下载
1/0