#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
#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
*/\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
; 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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
FreeRTOS_IRQ_Handler\r
\r
+ PRESERVE8\r
+\r
; Return to the interrupted instruction.\r
SUB lr, lr, #4\r
\r
}\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