]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/portable/GCC/RX100/port.c
Remove guards against __ARMCC_VERSION version numbers that were previously used to...
[freertos] / FreeRTOS / Source / portable / GCC / RX100 / port.c
index 63adc01559bc5c5e968ec6569039a4e7956a7bb6..6fd49c80424ad756e14af1d20946b681d9808917 100644 (file)
@@ -46,7 +46,7 @@
 \r
 /* Tasks should start with interrupts enabled and in Supervisor mode, therefore\r
 PSW is set with U and I set, and PM and IPL clear. */\r
-#define portINITIAL_PSW     ( ( StackType_t ) 0x00030000 )\r
+#define portINITIAL_PSW         ( ( StackType_t ) 0x00030000 )\r
 \r
 /* The peripheral clock is divided by this value before being supplying the\r
 CMT. */\r
@@ -105,7 +105,7 @@ void vPortTickISR( void ) __attribute__((interrupt));
 static void prvSetupTimerInterrupt( void );\r
 #ifndef configSETUP_TICK_INTERRUPT\r
        /* The user has not provided their own tick interrupt configuration so use\r
-    the definition in this file (which uses the interval timer). */\r
+       the definition in this file (which uses the interval timer). */\r
        #define configSETUP_TICK_INTERRUPT() prvSetupTimerInterrupt()\r
 #endif /* configSETUP_TICK_INTERRUPT */\r
 \r
@@ -162,7 +162,7 @@ StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t px
        /* R0 is not included as it is the stack pointer. */\r
        *pxTopOfStack = 0x00;\r
        pxTopOfStack--;\r
-    *pxTopOfStack = 0x00;\r
+       *pxTopOfStack = 0x00;\r
        pxTopOfStack--;\r
        *pxTopOfStack = portINITIAL_PSW;\r
        pxTopOfStack--;\r
@@ -284,22 +284,22 @@ static void prvStartFirstTask( void )
 \r
                /* Restore the registers from the stack of the task pointed to by\r
                pxCurrentTCB. */\r
-           "POP                R15                                             \n" \\r
+               "POP            R15                                             \n" \\r
 \r
                /* Accumulator low 32 bits. */\r
-           "MVTACLO    R15                                     \n" \\r
-           "POP                R15                                             \n" \\r
+               "MVTACLO        R15                                     \n" \\r
+               "POP            R15                                             \n" \\r
 \r
                /* Accumulator high 32 bits. */\r
-           "MVTACHI    R15                                     \n" \\r
+               "MVTACHI        R15                                     \n" \\r
 \r
                /* R1 to R15 - R0 is not included as it is the SP. */\r
-           "POPM               R1-R15                                  \n" \\r
+               "POPM           R1-R15                                  \n" \\r
 \r
                /* This pops the remaining registers. */\r
-           "RTE                                                                \n" \\r
-           "NOP                                                                \n" \\r
-           "NOP                                                                \n"\r
+               "RTE                                                            \n" \\r
+               "NOP                                                            \n" \\r
+               "NOP                                                            \n"\r
        );\r
 }\r
 /*-----------------------------------------------------------*/\r
@@ -573,14 +573,14 @@ static void prvSetupTimerInterrupt( void )
                }\r
                else if( eSleepAction == eNoTasksWaitingTimeout )\r
                {\r
-                   /* Protection off. */\r
-                   SYSTEM.PRCR.WORD = portUNLOCK_KEY;\r
+                       /* Protection off. */\r
+                       SYSTEM.PRCR.WORD = portUNLOCK_KEY;\r
 \r
-                   /* Ready for software standby with all clocks stopped. */\r
+                       /* Ready for software standby with all clocks stopped. */\r
                        SYSTEM.SBYCR.BIT.SSBY = 1;\r
 \r
-                   /* Protection on. */\r
-                   SYSTEM.PRCR.WORD = portLOCK_KEY;\r
+                       /* Protection on. */\r
+                       SYSTEM.PRCR.WORD = portLOCK_KEY;\r
 \r
                        /* Sleep until something happens.  Calling prvSleep() will\r
                        automatically reset the i bit in the PSW. */\r
@@ -591,18 +591,18 @@ static void prvSetupTimerInterrupt( void )
                }\r
                else\r
                {\r
-                   /* Protection off. */\r
-                   SYSTEM.PRCR.WORD = portUNLOCK_KEY;\r
+                       /* Protection off. */\r
+                       SYSTEM.PRCR.WORD = portUNLOCK_KEY;\r
 \r
-                   /* Ready for deep sleep mode. */\r
+                       /* Ready for deep sleep mode. */\r
                        SYSTEM.MSTPCRC.BIT.DSLPE = 1;\r
                        SYSTEM.MSTPCRA.BIT.MSTPA28 = 1;\r
                        SYSTEM.SBYCR.BIT.SSBY = 0;\r
 \r
-                   /* Protection on. */\r
-                   SYSTEM.PRCR.WORD = portLOCK_KEY;\r
+                       /* Protection on. */\r
+                       SYSTEM.PRCR.WORD = portLOCK_KEY;\r
 \r
-                   /* Adjust the match value to take into account that the current\r
+                       /* Adjust the match value to take into account that the current\r
                        time slice is already partially complete. */\r
                        ulMatchValue -= ( uint32_t ) CMT0.CMCNT;\r
                        CMT0.CMCOR = ( uint16_t ) ulMatchValue;\r