コード例 #1
0
ファイル: main.c プロジェクト: Leowardi/FreeRTOS
void vApplicationIdleHook( void )
{
	for( ;; )
	{
		vCoRoutineSchedule();
	}
}
コード例 #2
0
void vApplicationIdleHook( void )
{
	/* Schedule the co-routines. */
	for( ;; )
	{
		vCoRoutineSchedule();
	}
}
コード例 #3
0
ファイル: main.c プロジェクト: svn2github/freertos
/*---------------------------------------------------------------------------
 * The below callback function is called from Delayed ISR if configUSE_IDLE_HOOK 
 * is configured as 1.
 *---------------------------------------------------------------------------*/
void vApplicationIdleHook( void )
{
	#if WATCHDOG == WTC_IN_IDLE
	Kick_Watchdog();
	#endif
	#if ( INCLUDE_StartFlashCoRoutines == 1 || INCLUDE_StartHookCoRoutines == 1 )
	vCoRoutineSchedule();
	#endif
}
コード例 #4
0
	void vApplicationIdleHook( void )
	{
		/* Are we using the idle task to kick the watchdog?  See watchdog.h
		for watchdog kicking options. Note this is for demonstration only
		and is not a suggested method of servicing the watchdog in a real
		application. */
		#if WATCHDOG == WTC_IN_IDLE
			Kick_Watchdog();
		#endif

		vCoRoutineSchedule();
	}
コード例 #5
0
ファイル: main.c プロジェクト: peterliu2/tivaWare
void vApplicationIdleHook( void )
{
    /* The co-routines are executed in the idle task using the idle task
    hook. */
    for( ;; ) {
        /* Schedule the co-routines. */
        vCoRoutineSchedule();

        /* Run the register check function between each co-routine. */
        prvSetAndCheckRegisters();
    }
}
コード例 #6
0
ファイル: main.c プロジェクト: glocklueng/proditronicproject
void vApplicationIdleHook( void )
{
	/* The co-routines are executed in the idle task using the idle task 
	hook. */
	for( ;; )
	{
		/* Schedule the co-routines. */
		vCoRoutineSchedule();

		/* Run the register check function between each co-routine. */
		vSetAndCheckRegisters();
		
		/* See if the comms task and co-routine has found any errors. */
		if( uxGetCommsStatus() != pdPASS )
		{
			vParTestSetLED( mainFAIL_LED, pdTRUE );
		}
	}
}
コード例 #7
0
static void vLEDCoRoutineControlTask( void *pvParameters )
{
unsigned short usCoroutine;

	( void ) pvParameters;

	/* Create the co-routines - one of each segment of the right side display. */
	for( usCoroutine = 0; usCoroutine < ledNUM_OF_LED_CO_ROUTINES; usCoroutine++ )
	{
		xCoRoutineCreate( prvFixedDelayCoRoutine, ledCO_ROUTINE_PRIORITY, usCoroutine );
	}

	/* This task has nothing else to do except scheduler the co-routines it just
	created. */
	for( ;; )
	{
		vCoRoutineSchedule();
	}
}
コード例 #8
0
void vApplicationIdleHook( void )
{
	/* The co-routines are executed in the idle task using the idle task 
	hook. */
	vCoRoutineSchedule();
}
コード例 #9
0
ファイル: main.c プロジェクト: HclX/freertos
void vApplicationIdleHook( void )
{
	/* Schedule the co-routines from within the idle task hook. */
	vCoRoutineSchedule();
}