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

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

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

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

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

示例1: xPortStartScheduler

/* * See header file for description. */BaseType_t xPortStartScheduler( void ){	/* Make PendSV, CallSV and SysTick the same priroity as the kernel. */	*(portNVIC_SYSPRI2) |= portNVIC_PENDSV_PRI;	*(portNVIC_SYSPRI2) |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Start the first task. */	vPortStartFirstTask();	/* Should never get here as the tasks will now be executing!  Call the task	exit error function to prevent compiler warnings about a static function	not being called in the case that the application writer overrides this	functionality by defining configTASK_RETURN_ADDRESS. */	prvTaskExitError();	/* Should not get here! */	return 0;}
开发者ID:witc,项目名称:Muj_Obojek_GPS,代码行数:28,


示例2: xPortStartScheduler

/* * See header file for description. */portBASE_TYPE xPortStartScheduler( void ){	/* Make PendSV, CallSV and SysTick the same priroity as the kernel. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Ensure the VFP is enabled - it should be anyway. */	prvEnableVFP();	/* Lazy save always. */	*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;	/* Start the first task. */	prvStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:bookie,项目名称:freertos,代码行数:28,


示例3: xPortStartScheduler

/* * See header file for description. */BaseType_t xPortStartScheduler( void ){	/* This port can be used on all revisions of the Cortex-M7 core other than	the r0p1 parts.  r0p1 parts should use the port from the	/source/portable/GCC/ARM_CM7/r0p1 directory. */	configASSERT( SCB->CPUID != portCORTEX_M0_r0p0_ID );	/* Make PendSV the lowest priority interrupts. */	NVIC_SetPriority(PendSV_IRQn, configKERNEL_INTERRUPT_PRIORITY);	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Finally this port requires SEVONPEND to be active */	SCB->SCR |= SCB_SCR_SEVONPEND_Msk;	/* Start the first task. */	vPortStartFirstTask();	/* Should never get here as the tasks will now be executing!  Call the task	exit error function to prevent compiler warnings about a static function	not being called in the case that the application writer overrides this	functionality by defining configTASK_RETURN_ADDRESS. */	prvTaskExitError();	/* Should not get here! */	return 0;}
开发者ID:DanielOld,项目名称:wlock,代码行数:35,


示例4: xPortStartScheduler

/* * See header file for description. */portBASE_TYPE xPortStartScheduler( void ){	/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.	See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */	configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );	/* Make PendSV, CallSV and SysTick the same priroity as the kernel. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Ensure the VFP is enabled - it should be anyway. */	vPortEnableVFP();	/* Lazy save always. */	*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;	/* Start the first task. */	prvPortStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:InSoonPark,项目名称:FreeRTOS,代码行数:32,


示例5: xPortStartScheduler

/* * See header file for description. */portBASE_TYPE xPortStartScheduler( void ){	/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.	See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */	configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );	#if( configASSERT_DEFINED == 1 )	{		volatile unsigned long ulOriginalPriority;		volatile char * const pcFirstUserPriorityRegister = ( volatile char * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );		/* Determine the maximum priority from which ISR safe FreeRTOS API		functions can be called.  ISR safe functions are those that end in		"FromISR".  FreeRTOS maintains separate thread and ISR API functions to		ensure interrupt entry is as fast and simple as possible.		Save the interrupt priority value that is about to be clobbered. */		ulOriginalPriority = *pcFirstUserPriorityRegister;		/* Write the configMAX_SYSCALL_INTERRUPT_PRIORITY value to an interrupt		priority register. */		*pcFirstUserPriorityRegister = configMAX_SYSCALL_INTERRUPT_PRIORITY;		/* Read back the written priority to obtain its value as seen by the		hardware, which will only implement a subset of the priority bits. */		ucMaxSysCallPriority = *pcFirstUserPriorityRegister;		/* Restore the clobbered interrupt priority register to its original		value. */		*pcFirstUserPriorityRegister = ulOriginalPriority;	}	#endif /* conifgASSERT_DEFINED */	/* Make PendSV and SysTick the lowest priority interrupts. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Ensure the VFP is enabled - it should be anyway. */	vPortEnableVFP();	/* Lazy save always. */	*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;	/* Start the first task. */	prvPortStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:pieterpalmers,项目名称:walkgeek,代码行数:59,


示例6: xPortStartScheduler

/* * See header file for description. */portBASE_TYPE xPortStartScheduler( void ){	/* Make PendSV, CallSV and SysTick the same priroity as the kernel. */	*(portNVIC_SYSPRI2) |= portNVIC_PENDSV_PRI;	*(portNVIC_SYSPRI2) |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Start the first task. */	vPortStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:CospanDesign,项目名称:anna-logger,代码行数:22,


示例7: xPortStartScheduler

/* * See header file for description. */BaseType_t xPortStartScheduler( void ){	/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.	See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */	configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );	/* This port can be used on all revisions of the Cortex-M7 core other than	the r0p1 parts.  r0p1 parts should use the port from the	/source/portable/GCC/ARM_CM7/r0p1 directory. */	configASSERT( portCPUID != portCORTEX_M7_r0p1_ID );	configASSERT( portCPUID != portCORTEX_M7_r0p0_ID );	#if( configASSERT_DEFINED == 1 )	{		volatile uint32_t ulOriginalPriority;		volatile uint8_t * const pucFirstUserPriorityRegister = ( uint8_t * ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );		volatile uint8_t ucMaxPriorityValue;		/* Determine the maximum priority from which ISR safe FreeRTOS API		functions can be called.  ISR safe functions are those that end in		"FromISR".  FreeRTOS maintains separate thread and ISR API functions to		ensure interrupt entry is as fast and simple as possible.		Save the interrupt priority value that is about to be clobbered. */		ulOriginalPriority = *pucFirstUserPriorityRegister;		/* Determine the number of priority bits available.  First write to all		possible bits. */		*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;		/* Read the value back to see how many bits stuck. */		ucMaxPriorityValue = *pucFirstUserPriorityRegister;		/* The kernel interrupt priority should be set to the lowest		priority. */		configASSERT( ucMaxPriorityValue == ( configKERNEL_INTERRUPT_PRIORITY & ucMaxPriorityValue ) );		/* Use the same mask on the maximum system call priority. */		ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;		/* Calculate the maximum acceptable priority group value for the number		of bits read back. */		ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;		while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )		{			ulMaxPRIGROUPValue--;			ucMaxPriorityValue <<= ( uint8_t ) 0x01;		}		/* Shift the priority group value back to its position within the AIRCR		register. */		ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;		ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;		/* Restore the clobbered interrupt priority register to its original		value. */		*pucFirstUserPriorityRegister = ulOriginalPriority;	}	#endif /* conifgASSERT_DEFINED */	/* Make PendSV and SysTick the lowest priority interrupts. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Ensure the VFP is enabled - it should be anyway. */	prvEnableVFP();	/* Lazy save always. */	*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;	/* Start the first task. */	prvStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:bleuelotus,项目名称:SweepRobot_Testing_Host,代码行数:86,


示例8: xPortStartScheduler

/* * See header file for description. */portBASE_TYPE xPortStartScheduler( void ){	/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.	See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */	configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );	#if( configASSERT_DEFINED == 1 )	{		volatile unsigned long ulOriginalPriority;		volatile char * const pcFirstUserPriorityRegister = ( volatile char * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );		volatile unsigned char ucMaxPriorityValue;		/* Determine the maximum priority from which ISR safe FreeRTOS API		functions can be called.  ISR safe functions are those that end in		"FromISR".  FreeRTOS maintains separate thread and ISR API functions to		ensure interrupt entry is as fast and simple as possible.		Save the interrupt priority value that is about to be clobbered. */		ulOriginalPriority = *pcFirstUserPriorityRegister;		/* Determine the number of priority bits available.  First write to all		possible bits. */		*pcFirstUserPriorityRegister = portMAX_8_BIT_VALUE;		/* Read the value back to see how many bits stuck. */		ucMaxPriorityValue = *pcFirstUserPriorityRegister;		/* Use the same mask on the maximum system call priority. */		ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;		/* Calculate the maximum acceptable priority group value for the number		of bits read back. */		ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;		while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )		{			ulMaxPRIGROUPValue--;			ucMaxPriorityValue <<= ( unsigned char ) 0x01;		}		/* Shift the priority group value back to its position within the AIRCR		register. */		ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;		ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;		/* Restore the clobbered interrupt priority register to its original		value. */		*pcFirstUserPriorityRegister = ulOriginalPriority;	}	#endif /* conifgASSERT_DEFINED */	/* Make PendSV and SysTick the lowest priority interrupts. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Start the first task. */	prvPortStartFirstTask();	/* Should not get here! */	return 0;}
开发者ID:Alex-Rongzhen-Huang,项目名称:OpenPilot,代码行数:70,


示例9: xPortStartScheduler

/* * See header file for description. */BaseType_t xPortStartScheduler( void ){	/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.	See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */	configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );	#if( configASSERT_DEFINED == 1 )	{		volatile uint32_t ulOriginalPriority;		volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );		volatile uint8_t ucMaxPriorityValue;		/* Determine the maximum priority from which ISR safe FreeRTOS API		functions can be called.  ISR safe functions are those that end in		"FromISR".  FreeRTOS maintains separate thread and ISR API functions to		ensure interrupt entry is as fast and simple as possible.		Save the interrupt priority value that is about to be clobbered. */		ulOriginalPriority = *pucFirstUserPriorityRegister;		/* Determine the number of priority bits available.  First write to all		possible bits. */		*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;		/* Read the value back to see how many bits stuck. */		ucMaxPriorityValue = *pucFirstUserPriorityRegister;		/* Use the same mask on the maximum system call priority. */		ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;		/* Calculate the maximum acceptable priority group value for the number		of bits read back. */		ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;		while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )		{			ulMaxPRIGROUPValue--;			ucMaxPriorityValue <<= ( uint8_t ) 0x01;		}		/* Shift the priority group value back to its position within the AIRCR		register. */		ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;		ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;		/* Restore the clobbered interrupt priority register to its original		value. */		*pucFirstUserPriorityRegister = ulOriginalPriority;	}	#endif /* conifgASSERT_DEFINED */	/* Make PendSV and SysTick the lowest priority interrupts. */	portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;	portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;	/* Start the timer that generates the tick ISR.  Interrupts are disabled	here already. */	vPortSetupTimerInterrupt();	/* Initialise the critical nesting count ready for the first task. */	uxCriticalNesting = 0;	/* Ensure the VFP is enabled - it should be anyway. */	vPortEnableVFP();	/* Lazy save always. */	*( portFPCCR ) |= portASPEN_AND_LSPEN_BITS;	/* Start the first task. */	prvPortStartFirstTask();	/* Should never get here as the tasks will now be executing!  Call the task	exit error function to prevent compiler warnings about a static function	not being called in the case that the application writer overrides this	functionality by defining configTASK_RETURN_ADDRESS. */	prvTaskExitError();	/* Should not get here! */	return 0;}
开发者ID:swichu91,项目名称:ethernet_stmf7,代码行数:82,



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


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