uC/OS-II@STC32G PendSv  ԭʼֲ  tzz1983


: STC MUC 251ںϵ uC/OS 2.93 ԭʼֲ汾. ֲ汾ʹ "PendSv" жл.


ʹ֪:
1.ѡ Ŀѡȫ "Generate reentrant functions",ѡ.
2.ֲҪǿָ洢.
3.ǰҪEA, õʱԶEA.
4.ʱ0ϵͳδ,́꼶.


OSһӲжģPendSvΪ, л.PendSvռһжԴ.


ʱԴ: ת Config.h


PendSv תos_pendsv_config.h


ʹжϱ׼ʽ:
void xxxx_ISR_Handler (void) interrupt x
{
    OSIntNesting++;     //ָ OSIntNesting
    
    жϴ
    
    OSIntExit();        //˳ж
}


жﲻʹκOS,жϺпʡȥ"OSIntNesting++""OSIntExit()", ߳Ч. :
void xxxx_ISR_Handler (void) interrupt x        
{
    жϴ
	//ǿ:"OSIntNesting++""OSIntExit()"жϴ벻ܵOS
}

÷:  OSIntNesting:1.ֹǶ׵жֱӷ. 2.֪ͨOSǰж. 
          ֲʹ PendSv л,  "1" ѾʧЧ.
		  ûеOS,"2"ҲʧЧ.



ʹü: 
		Ժ,ջѱ. OS_Get_STACK_Addr()ջַ.
		ʵ,һСΪSTACKSIZEڴɹʹ.

