" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
\r
void vPortEnterCritical( void )\r
{\r
- portDISABLE_INTERRUPTS();\r
- uxCriticalNesting++;\r
+ portDISABLE_INTERRUPTS();\r
+ uxCriticalNesting++;\r
__asm volatile( "dsb" ::: "memory" );\r
__asm volatile( "isb" );\r
}\r
void vPortExitCritical( void )\r
{\r
configASSERT( uxCriticalNesting );\r
- uxCriticalNesting--;\r
- if( uxCriticalNesting == 0 )\r
- {\r
- portENABLE_INTERRUPTS();\r
- }\r
+ uxCriticalNesting--;\r
+ if( uxCriticalNesting == 0 )\r
+ {\r
+ portENABLE_INTERRUPTS();\r
+ }\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr "\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will nevere be reached,\r
- but some compilers warn if it is not included, while others won't compile if\r
- it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr "\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- the compiler can't see that. Some compilers generate warnings without the\r
- following line, while others generate warnings if the line is included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* To avoid compiler warnings. The return statement will never be reached,\r
- * but some compilers warn if it is not included, while others won't compile\r
- * if it is. */\r
- return 0;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
" bx lr \n"\r
::: "memory"\r
);\r
-\r
-#if !defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)\r
- /* Just to avoid compiler warning. ulMask is used from the asm code but\r
- * the compiler can't see that. Some compilers generate warnings without\r
- * the following line, while others generate warnings if the line is\r
- * included. */\r
- ( void ) ulMask;\r
-#endif\r
}\r
/*-----------------------------------------------------------*/\r
\r
\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