本文整理汇总了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 */
}
示例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();
}
示例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 */
}
示例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 */
}
示例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 */
}
示例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 */
}
示例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);
}
示例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 */
}
示例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();
}
示例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();
}
示例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();
}
示例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
}
示例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,在其中实现任务切换 */
}
示例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 */
}
示例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
}