mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-20 05:21:59 -04:00
Formatting only.
This commit is contained in:
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 = ( portSTACK_TYPE ) pvParameters; /* R1 is expected to hold the function parameter*/
|
||||||
pxTopOfStack--;
|
pxTopOfStack--;
|
||||||
*pxTopOfStack = ( portSTACK_TYPE ) portNO_CRITICAL_SECTION_NESTING;
|
*pxTopOfStack = ( portSTACK_TYPE ) portNO_CRITICAL_SECTION_NESTING;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return a pointer to the top of the stack we have generated so this can
|
* 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.
|
* 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
|
/* Setup the hardware to generate the tick. Interrupts are disabled when
|
||||||
this function is called. */
|
this function is called. */
|
||||||
prvSetupTimerInterrupt();
|
prvSetupTimerInterrupt();
|
||||||
|
|
||||||
/* Restore the context of the first task that is going to run. */
|
/* Restore the context of the first task that is going to run. */
|
||||||
vPortStart();
|
vPortStart();
|
||||||
|
|
||||||
/* Should not get here as the tasks are now running! */
|
/* Should not get here as the tasks are now running! */
|
||||||
return pdTRUE;
|
return pdTRUE;
|
||||||
}
|
}
|
||||||
|
@ -177,7 +180,6 @@ static void prvSetupTimerInterrupt( void )
|
||||||
|
|
||||||
/* Set INTTM0EQ0 level 5 priority */
|
/* Set INTTM0EQ0 level 5 priority */
|
||||||
TM0EQIC0 &= 0xF8;
|
TM0EQIC0 &= 0xF8;
|
||||||
/* TM0EQIC0 |= 0x05;*/
|
|
||||||
TM0CTL0 = 0x00;
|
TM0CTL0 = 0x00;
|
||||||
TM0CMP0 = (((configCPU_CLOCK_HZ / configTICK_RATE_HZ) / 2)-1); /* divided by 2 because peripherals only run at CPU_CLOCK/2 */
|
TM0CMP0 = (((configCPU_CLOCK_HZ / configTICK_RATE_HZ) / 2)-1); /* divided by 2 because peripherals only run at CPU_CLOCK/2 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue