\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
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
/* 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
\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
}\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
}\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