当前位置: 首页>>代码示例>>C++>>正文


C++ OSIntExit函数代码示例

本文整理汇总了C++中OSIntExit函数的典型用法代码示例。如果您正苦于以下问题:C++ OSIntExit函数的具体用法?C++ OSIntExit怎么用?C++ OSIntExit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了OSIntExit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: SysTick_Handler

/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None
  */
void SysTick_Handler(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          */

}
开发者ID:wangzhouwang,项目名称:ucosii_video,代码行数:19,代码来源:stm32f4xx_it.c

示例2: EXTI15_10_IRQHandler

void EXTI15_10_IRQHandler(void)
{ 
  	uint32_t Dout;
	OS_ERR 	err;
	OSIntEnter();
  	EXTI->PR &= EXTI_Line13;
//	EXTI->IMR &= ~EXTI_Line13;

	/*1---------------------------------------------*/
	/*ADS1255-1读数*/
	Dout = ads1255_rdata();	
	printf("v=%x v=%f\r\n", Dout, (Dout*5.0/8388606.0));
  	OSIntExit();	
}
开发者ID:evanwan2003,项目名称:north-west-wolf,代码行数:14,代码来源:stm32f10x_it.c

示例3: SysTick_Handler

void SysTick_Handler(void)
{
#if OS_CRITICAL_METHOD == 3 /* Allocate storage for CPU status register */
    OS_CPU_SR  cpu_sr = 0;
#endif

    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 */	
}
开发者ID:nosnav,项目名称:stm32f4-uCos-II-mdk-fpu-template-project,代码行数:14,代码来源:stm32f4xx_it.c

示例4: OS_CPU_SysTickHandler

void  OS_CPU_SysTickHandler (void)
{
#if OS_CRITICAL_METHOD == 3
    OS_CPU_SR  cpu_sr;
#endif

    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          */
}
开发者ID:tomyqg,项目名称:stm32fxdtu,代码行数:14,代码来源:os_cpu_c.c

示例5: EXTI15_10_IRQHandler

/*******************************************************************************
* Function Name  : EXTI15_10_IRQHandler
* Description    : This function handles External lines 15 to 10 interrupt request.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void EXTI15_10_IRQHandler(void)
{
#if OS_CRITICAL_METHOD == 3
    OS_CPU_SR  cpu_sr;
#endif

    OS_ENTER_CRITICAL();                         /* Tell uC/OS-II that we are starting an ISR          */
    OSIntNesting++;
    OS_EXIT_CRITICAL();

//    key_isr();
    
    OSIntExit();                                 /* Tell uC/OS-II that we are leaving the ISR          */
}
开发者ID:tomyqg,项目名称:stm32fxdtu,代码行数:21,代码来源:stm32f10x_it.c

示例6: SDIO_IRQHandler

void SDIO_IRQHandler(void)
{
#if OS_CRITICAL_METHOD == 3
    OS_CPU_SR  cpu_sr;
#endif

    OS_ENTER_CRITICAL();                         /* Tell uC/OS-II that we are starting an ISR          */
    OSIntNesting++;
    OS_EXIT_CRITICAL();

 //   SD_ProcessIRQSrc();
  
    OSIntExit();                                 /* Tell uC/OS-II that we are leaving the ISR          */
}
开发者ID:tomyqg,项目名称:stm32fxdtu,代码行数:14,代码来源:stm32f10x_it.c

示例7: SysTickIntHandler

//*****************************************************************************
//
// The interrupt handler for the SysTick interrupt.
//
//*****************************************************************************
void
SysTickIntHandler(void)
{
    OS_ENTER_CRITICAL();
    OSIntNesting++;
    OS_EXIT_CRITICAL();

    OSTimeTick();
    OSIntExit();

    //
    // Call the SoftI2C tick function.
    //
    //SoftI2CTimerTick(&g_sI2C);
}
开发者ID:redfox-qu,项目名称:ipmi_ucos_6911,代码行数:20,代码来源:main.c

示例8: EXTI0_IRQHandler

void EXTI0_IRQHandler(void) {
#if OS_CRITICAL_METHOD == 3u  /* Allocate storage for CPU status register */
    OS_CPU_SR  cpu_sr = 0u;
#endif

    OS_ENTER_CRITICAL();
    OSIntEnter();  /* Tell uC/OS-II that we are starting an ISR */
    OS_EXIT_CRITICAL();

    /* perform the application work... */
    QACTIVE_POST(AO_Table, Q_NEW(QEvt, MAX_SIG), /* for testing... */
                 &l_EXTI0_IRQHandler);

    OSIntExit();   /* Tell uC/OS-II that we are leaving the ISR */
}
开发者ID:alisonjoe,项目名称:qpc,代码行数:15,代码来源:bsp.c

示例9: uart2Isr

void uart2Isr ( void )
{
#if OS_CRITICAL_METHOD ==3
    OS_CPU_SR  cpu_sr;
#endif

    OS_ENTER_CRITICAL();
    //OSIntNesting++;
    OSIntEnter();
    OS_EXIT_CRITICAL();

    commBaseIsr ( 2 );

    OSIntExit();
 }
开发者ID:yanlunyao,项目名称:stm32_lwip_ucos_udp_test,代码行数:15,代码来源:Isr.c

示例10: sysTickIsr

/*******************************************************************************
*函数名:
  **isr
*功能:各中断跳转,方便代码部分升级
*输入:
*输出:
*说明:
*******************************************************************************/
void sysTickIsr ( void )
{
    #if OS_CRITICAL_METHOD ==3
    OS_CPU_SR  cpu_sr;
    #endif

    OS_ENTER_CRITICAL();
   // OSIntNesting++;
    OSIntEnter();
    OS_EXIT_CRITICAL();

    OSTimeTick();                        // Call uC/OS-II's OSTimeTick()  调用uC/OS-II的OSTimeTick()函数

    OSIntExit();
}
开发者ID:yanlunyao,项目名称:stm32_lwip_ucos_udp_test,代码行数:23,代码来源:Isr.c

示例11: EXTI4_IRQHandler

//外部中断4处理函数
void EXTI4_IRQHandler(void)
{
    OSIntEnter();
    if(EXTI_GetITStatus(EXTI_Line4) != RESET)
    {
        PTO_Stop();
        PulseNum_Global = 0; 
        if(HomeFlag == 0)
        {           
            HomeFlag = 1;
        }    
        EXTI_ClearITPendingBit(EXTI_Line4);
    }
	OSIntExit();
}
开发者ID:sunhaokkll,项目名称:StepMotor,代码行数:16,代码来源:pto.c

示例12: USART1_IRQHandler

void USART1_IRQHandler(void)                	//串口1中断服务程序
{
		
#if SYSTEM_SUPPORT_OS 		//如果SYSTEM_SUPPORT_OS为真,则需要支持OS.
	OSIntEnter();    
#endif
	if(USART_GetITStatus(USART1, USART_IT_RXNE) != RESET)  //接收中断(接收到的数据必须是0x0d 0x0a结尾)
		{	
			
			USART_ClearITPendingBit(USART1, USART_IT_RXNE);
		}
#if SYSTEM_SUPPORT_OS 	//如果SYSTEM_SUPPORT_OS为真,则需要支持OS.
	OSIntExit();  											 
#endif
}
开发者ID:LYF-HXW,项目名称:BANLANCE-CAR,代码行数:15,代码来源:usart.c

示例13: SysTick_Handler

/*********************************************************************************************************
*                                          SYS TICK HANDLER
*
* Description: Handle the system tick (SysTick) interrupt, which is used to generate the myos tick
*              interrupt.
*
* Arguments  : none.
*
* Note(s)    : 1) This function MUST be placed on entry 15 of the Cortex-M3 vector table.
*********************************************************************************************************
*/
void  SysTick_Handler (void)
{
    OS_CPU_SR  cpu_sr;

	cpu_sr++;

    OS_ENTER_CRITICAL();                         /* Tell myos that we are starting an ISR          */
    OSIntNesting++;
    OS_EXIT_CRITICAL();
	Decrement_TimingDelay();
//
    OSTimeTick();                                /* Call myos OSTimeTick()                       */
//
    OSIntExit();                                 /* Tell myos that we are leaving the ISR,在其中实现任务切换          */
}
开发者ID:jacksunworld,项目名称:myos,代码行数:26,代码来源:cpu.c

示例14: USART3_IRQHandler

void USART3_IRQHandler(void)
{
	/* Handle the Interrupt … don’t forget to clear the interrupt source */

	/* Check the flag that shows the reason of interrupt */
	if (USART_GetITStatus( USART3, USART_IT_RXNE ) == SET)
	{
		/* Clear the interrupt pending bit */
		USART_ClearITPendingBit( USART3, USART_IT_RXNE );

		/* Read data */
		uint16_t usartData = USART_ReceiveData( USART3 );
	}
	OSIntExit(); /* Tell uC/OS-II that we are leaving the ISR */
}
开发者ID:talaberg,项目名称:ReAL1-Meres6,代码行数:15,代码来源:stm32f4xx_it.c

示例15: FTM2_IRQHandler

void FTM2_IRQHandler(void)
{
#if (UCOS_II > 0u)
    OS_CPU_SR  cpu_sr = 0u;
    OS_ENTER_CRITICAL(); //告知系统此时已经进入了中断服务子函数
    OSIntEnter();
    OS_EXIT_CRITICAL();
#endif

    FTM_ISR[2]();

#if (UCOS_II > 0u)
    OSIntExit();          //告知系统此时即将离开中断服务子函数
#endif
}
开发者ID:rmokerone,项目名称:MOS_K60_Lib,代码行数:15,代码来源:hw_ftm.c


注:本文中的OSIntExit函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。