新手上路
- 积分
- 22
- 金钱
- 22
- 注册时间
- 2016-5-6
- 在线时间
- 4 小时
|
1金钱
请问F4 UCOSII里的OS_CPU_SysTickHandler函数移植时为什么将
- void OS_CPU_SysTickHandler (void)
- {
- OS_CPU_SR cpu_sr;
- OS_ENTER_CRITICAL(); /* Tell uC/OS-II that we are starting an ISR */
- OSIntNesting++;
- OS_EXIT_CRITICAL();
- OSTimeTick(); /* Call uC/OS-II's OSTimeTick() */
- OSIntExit(); /* Tell uC/OS-II that we are leaving the ISR */
- }
复制代码 改成
- void SysTick_Handler(void)
- {
- OSIntEnter();
- OSTimeTick();
- OSIntExit();
- }
复制代码
还有
- LDR R0, =OS_CPU_ExceptStkBase
- LDR R1, [R0]
- MSR MSP, R1
复制代码 中为什么要用R1中转一下?[R0]是个值还是地址?
|
|