Exemplo n.º 1
0
/* This function is explained in the comments at the top of this file. */
static void prvRegTest1Task( void *pvParameters )
{
	if( ( ( unsigned long ) pvParameters ) != mainREG_TEST_1_PARAMETER )
	{
		/* The parameter did not contain the expected value. */
		for( ;; )
		{
			/* Stop the tick interrupt so its obvious something has gone wrong. */
			taskDISABLE_INTERRUPTS();
		}
	}

	/* This is an inline asm function that never returns. */
	vRegTest1Implementation();
}
Exemplo n.º 2
0
static void prvRegTestTaskEntry1( void *pvParameters )
{
    /* Although the regtest task is written in assembler, its entry point is
    written in C for convenience of checking the task parameter is being passed
    in correctly. */
    if( pvParameters == mainREG_TEST_TASK_1_PARAMETER ) {
        /* Start the part of the test that is written in assembler. */
        vRegTest1Implementation();
    }

    /* The following line will only execute if the task parameter is found to
    be incorrect.  The check timer will detect that the regtest loop counter is
    not being incremented and flag an error. */
    vTaskDelete( NULL );
}