Formatting only.

pull/4/head
Richard Barry 16 years ago
parent 296514e80a
commit 5ebd915502

@ -139,6 +139,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE
*pxTopOfStack = ( portSTACK_TYPE ) pvParameters; /* R1 is expected to hold the function parameter*/
pxTopOfStack--;
*pxTopOfStack = ( portSTACK_TYPE ) portNO_CRITICAL_SECTION_NESTING;
/*
* Return a pointer to the top of the stack we have generated so this can
* be stored in the task control block for the task.
@ -152,8 +153,10 @@ portBASE_TYPE xPortStartScheduler( void )
/* Setup the hardware to generate the tick. Interrupts are disabled when
this function is called. */
prvSetupTimerInterrupt();
/* Restore the context of the first task that is going to run. */
vPortStart();
/* Should not get here as the tasks are now running! */
return pdTRUE;
}
@ -177,7 +180,6 @@ static void prvSetupTimerInterrupt( void )
/* Set INTTM0EQ0 level 5 priority */
TM0EQIC0 &= 0xF8;
/* TM0EQIC0 |= 0x05;*/
TM0CTL0 = 0x00;
TM0CMP0 = (((configCPU_CLOCK_HZ / configTICK_RATE_HZ) / 2)-1); /* divided by 2 because peripherals only run at CPU_CLOCK/2 */

Loading…
Cancel
Save