From: RichardBarry Date: Thu, 22 Jan 2009 17:26:04 +0000 (+0000) Subject: Formatting only. X-Git-Tag: V5.1.2~78 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c0c1e014a2fe8ab5f040118d0c0fae357e64b928;p=freertos Formatting only. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@618 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/IAR/V850ES_Fx3/port.c b/Source/portable/IAR/V850ES_Fx3/port.c index 02ffdc898..4ab01375b 100644 --- a/Source/portable/IAR/V850ES_Fx3/port.c +++ b/Source/portable/IAR/V850ES_Fx3/port.c @@ -100,7 +100,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxTopOfStack--; *pxTopOfStack = ( portSTACK_TYPE ) 0x30303030; /* Initial Value of R30 */ pxTopOfStack--; - *pxTopOfStack = ( portSTACK_TYPE ) 0x19191919; /* Initial Value of R19 */ + *pxTopOfStack = ( portSTACK_TYPE ) 0x19191919; /* Initial Value of R19 */ pxTopOfStack--; *pxTopOfStack = ( portSTACK_TYPE ) 0x18181818; /* Initial Value of R18 */ pxTopOfStack--; @@ -112,7 +112,7 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE pxTopOfStack--; *pxTopOfStack = ( portSTACK_TYPE ) 0x14141414; /* Initial Value of R14 */ pxTopOfStack--; - *pxTopOfStack = ( portSTACK_TYPE ) 0x13131313; /* Initial Value of R13 */ + *pxTopOfStack = ( portSTACK_TYPE ) 0x13131313; /* Initial Value of R13 */ pxTopOfStack--; *pxTopOfStack = ( portSTACK_TYPE ) 0x12121212; /* Initial Value of R12 */ pxTopOfStack--; @@ -136,13 +136,14 @@ portSTACK_TYPE *pxPortInitialiseStack( portSTACK_TYPE *pxTopOfStack, pdTASK_CODE #endif /* configDATA_MODE */ *pxTopOfStack = ( portSTACK_TYPE ) 0x22222222; /* Initial Value of R02 */ pxTopOfStack--; - *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 = ( 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. - */ + *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. + */ return pxTopOfStack; } /*-----------------------------------------------------------*/ @@ -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; } @@ -171,17 +174,16 @@ void vPortEndScheduler( void ) */ static void prvSetupTimerInterrupt( void ) { - TM0CE = 0; /* TMM0 operation disable */ + TM0CE = 0; /* TMM0 operation disable */ TM0EQMK0 = 1; /* INTTM0EQ0 interrupt disable */ TM0EQIF0 = 0; /* clear INTTM0EQ0 interrupt flag */ /* 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 */ - - TM0EQIF0 = 0; /* clear INTTM0EQ0 interrupt flag */ + + TM0EQIF0 = 0; /* clear INTTM0EQ0 interrupt flag */ TM0EQMK0 = 0; /* INTTM0EQ0 interrupt enable */ TM0CE = 1; /* TMM0 operation enable */ }