您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ vApplicationSetupTimerInterrupt函数代码示例

51自学网 2021-06-03 09:30:36
  C++
这篇教程C++ vApplicationSetupTimerInterrupt函数代码示例写得很实用,希望能帮到您。

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

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

示例1: xPortStartScheduler

portBASE_TYPE xPortStartScheduler( void ){extern void vApplicationSetupTimerInterrupt( void );	/* Use pxCurrentTCB just so it does not get optimised away. */	if( pxCurrentTCB != NULL )	{		/* Call an application function to set up the timer that will generate the		tick interrupt.  This way the application can decide which peripheral to 		use.  A demo application is provided to show a suitable example. */		vApplicationSetupTimerInterrupt();		/* Enable the software interrupt. */				_IEN( _ICU_SWINT ) = 1;				/* Ensure the software interrupt is clear. */		_IR( _ICU_SWINT ) = 0;				/* Ensure the software interrupt is set to the kernel priority. */		_IPR( _ICU_SWINT ) = configKERNEL_INTERRUPT_PRIORITY;			/* Start the first task. */		prvStartFirstTask();	}	/* Just to make sure the function is not optimised away. */	( void ) vSoftwareInterruptISR();	/* Should not get here. */	return pdFAIL;}
开发者ID:CausticUC,项目名称:STM32-Bootloader,代码行数:31,


示例2: xPortStartScheduler

BaseType_t xPortStartScheduler( void ){extern void ( vPortStartFirstTask )( void );extern uint32_t _stack[];	/* Setup the hardware to generate the tick.  Interrupts are disabled when	this function is called.	This port uses an application defined callback function to install the tick	interrupt handler because the kernel will run on lots of different	MicroBlaze and FPGA configurations - not all of	which will have the same	timer peripherals defined or available.  An example definition of	vApplicationSetupTimerInterrupt() is provided in the official demo	application that accompanies this port. */	vApplicationSetupTimerInterrupt();	/* Reuse the stack from main() as the stack for the interrupts/exceptions. */	pulISRStack = ( uint32_t * ) _stack;	/* Ensure there is enough space for the functions called from the interrupt	service routines to write back into the stack frame of the caller. */	pulISRStack -= 2;	/* Restore the context of the first task that is going to run.  From here	on, the created tasks will be executing. */	vPortStartFirstTask();	/* Should not get here as the tasks are now running! */	return pdFALSE;}
开发者ID:DanielKristofKiss,项目名称:FreeRTOS,代码行数:30,


示例3: xPortStartScheduler

portBASE_TYPE xPortStartScheduler( void ){extern void vApplicationSetupTimerInterrupt( void );	/* Call an application function to set up the timer that will generate the	tick interrupt.  This way the application can decide which peripheral to 	use.  A demo application is provided to show a suitable example. */	vApplicationSetupTimerInterrupt();	/* Start the first task.  This will only restore the standard registers and	not the flop registers.  This does not really matter though because the only	flop register that is initialised to a particular value is fpscr, and it is	only initialised to the current value, which will still be the current value	when the first task starts executing. */	trapa( portSTART_SCHEDULER_TRAP_NO );	/* Should not get here. */	return pdFAIL;}
开发者ID:Carrotman42,项目名称:cs4534,代码行数:19,


示例4: vPortSetupTimerInterrupt

/* * Hardware initialisation to generate the RTOS tick. */void vPortSetupTimerInterrupt( void ){	vApplicationSetupTimerInterrupt();}
开发者ID:jagadish-bhavana,项目名称:RTOS,代码行数:7,



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


C++ vCoRoutineSchedule函数代码示例
C++ vApplicationMallocFailedHook函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。