]> git.sur5r.net Git - freertos/commitdiff
General maintenance - changing comments and correcting spellings only.
authorrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 4 Aug 2014 07:57:18 +0000 (07:57 +0000)
committerrtel <rtel@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Mon, 4 Aug 2014 07:57:18 +0000 (07:57 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@2287 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

FreeRTOS-Plus/Demo/Common/FreeRTOS_Plus_CLI_Demos/Sample-CLI-commands.c
FreeRTOS/Source/include/portable.h
FreeRTOS/Source/include/projdefs.h
FreeRTOS/Source/portable/IAR/ARM_CA5_No_GIC/portASM.s
FreeRTOS/Source/tasks.c

index 2b3e2215777dcba7e26d2318d8bf91c5161b7ba0..d120401c1389f70c7533c6f94fd8cf5dae5572db 100644 (file)
        #define configINCLUDE_TRACE_RELATED_CLI_COMMANDS 0\r
 #endif\r
 \r
+/*\r
+ * The function that registers the commands that are defined within this file.\r
+ */\r
+void vRegisterSampleCLICommands( void );\r
 \r
 /*\r
  * Implements the task-stats command.\r
index 619daf9a7e0b9e8e586eda3a06a6374daf848e6b..f63e1a599d4f21f687c1be441abf7b551d656fa9 100644 (file)
@@ -322,7 +322,7 @@ to find the path to the correct portmacro.h file. */
 #endif\r
 \r
 #if portBYTE_ALIGNMENT == 8\r
-       #define portBYTE_ALIGNMENT_MASK ( 0x0007 )\r
+       #define portBYTE_ALIGNMENT_MASK ( 0x0007U )\r
 #endif\r
 \r
 #if portBYTE_ALIGNMENT == 4\r
index 2d12bd71981f61eaf6e06d0c6ec4a2cf552aa193..ab13a62e13b9eadc5c7fb0f7100d39608b0788c8 100644 (file)
@@ -72,7 +72,7 @@
  */\r
 typedef void (*TaskFunction_t)( void * );\r
 \r
-/* Converts a time in miliseconds to a time in ticks. */\r
+/* Converts a time in milliseconds to a time in ticks. */\r
 #define pdMS_TO_TICKS( xTimeInMs ) ( ( ( TickType_t ) xTimeInMs * configTICK_RATE_HZ ) / ( TickType_t ) 1000 )\r
 \r
 #define pdFALSE                        ( ( BaseType_t ) 0 )\r
index b2a4f708c0088ad68e04f29b4a9784b5bd8ae356..d61b796061ecc71ab908b8ef0a0c70b197f76fbc 100644 (file)
@@ -90,6 +90,9 @@ FreeRTOS_SWI_Handler
 ; vPortRestoreTaskContext is used to start the scheduler.\r
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 vPortRestoreTaskContext\r
+\r
+       PRESERVE8\r
+\r
        ; Switch to system mode\r
        CPS             #SYS_MODE\r
        portRESTORE_CONTEXT\r
@@ -99,6 +102,8 @@ vPortRestoreTaskContext
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 FreeRTOS_IRQ_Handler\r
 \r
+       PRESERVE8\r
+\r
        ; Return to the interrupted instruction.\r
        SUB             lr, lr, #4\r
 \r
index 1ef6523c9ab4d61df827bc0c2dc0bc896e0405ee..7f03fa9bf74016486fb84ff8ed980d888ab35633 100644 (file)
@@ -2151,11 +2151,13 @@ void vTaskSwitchContext( void )
                }\r
                #endif /* configGENERATE_RUN_TIME_STATS */\r
 \r
+               /* Check for stack overflow, if configured. */\r
                taskFIRST_CHECK_FOR_STACK_OVERFLOW();\r
                taskSECOND_CHECK_FOR_STACK_OVERFLOW();\r
 \r
+               /* Select a new task to run using either the generic C or port\r
+               optimised asm code. */\r
                taskSELECT_HIGHEST_PRIORITY_TASK();\r
-\r
                traceTASK_SWITCHED_IN();\r
 \r
                #if ( configUSE_NEWLIB_REENTRANT == 1 )\r