这篇教程C++ vApplicationSetupTimerInterrupt函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中vApplicationSetupTimerInterrupt函数的典型用法代码示例。如果您正苦于以下问题:C++ vApplicationSetupTimerInterrupt函数的具体用法?C++ vApplicationSetupTimerInterrupt怎么用?C++ vApplicationSetupTimerInterrupt使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了vApplicationSetupTimerInterrupt函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: xPortStartSchedulerportBASE_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: xPortStartSchedulerBaseType_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: xPortStartSchedulerportBASE_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函数代码示例 |