summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-01-22 17:26:04 +0000
committerRichardBarry <RichardBarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>2009-01-22 17:26:04 +0000
commit71c330d6d57b54c5e4f5f9f6448ebda427419ca9 (patch)
treeac9acc45cd20cc9b727219b67c7d3595855d244c /Source
parenta7701490a309bfc54ae7a7009c0d215fe5d6a4f6 (diff)
downloadfreertos-71c330d6d57b54c5e4f5f9f6448ebda427419ca9.tar.gz
freertos-71c330d6d57b54c5e4f5f9f6448ebda427419ca9.tar.bz2
freertos-71c330d6d57b54c5e4f5f9f6448ebda427419ca9.tar.xz
Formatting only.
git-svn-id: https://freertos.svn.sourceforge.net/svnroot/freertos/trunk@618 1d2547de-c912-0410-9cb9-b8ca96c0e9e2
Diffstat (limited to 'Source')
-rw-r--r--Source/portable/IAR/V850ES_Fx3/port.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/Source/portable/IAR/V850ES_Fx3/port.c b/Source/portable/IAR/V850ES_Fx3/port.c
index 02ffdc89..4ab01375 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 */
}