]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_A5_SAMA5D3x_Xplained_IAR/Full_Demo/main_full.c
Common demo tasks:
[freertos] / FreeRTOS / Demo / CORTEX_A5_SAMA5D3x_Xplained_IAR / Full_Demo / main_full.c
index 1eff84509612a2ad97c9fb1b8f0c9800e1a91c72..b99b2ef5cfc4bb9a0b01ac7dd63e39994bd898bd 100644 (file)
  * In addition to the standard demo tasks, the following tasks and tests are\r
  * defined and/or created within this file:\r
  *\r
- * FreeRTOS+CLI command console.  The command console is access through the\r
- * UART to USB connector on the _RB_.  For\r
- * reasons of robustness testing the UART driver is deliberately written to be\r
- * inefficient and should not be used as a template for a production driver.\r
- * Type "help" to see a list of registered commands.  The FreeRTOS+CLI license\r
- * is different to the FreeRTOS license, see http://www.FreeRTOS.org/cli for\r
- * license and usage details.  The default baud rate is 115200.\r
+ * "FreeRTOS+CLI command console" -  The command console is access using the USB\r
+ * CDC driver provided by Atmel.  It is accessed through the USB connector\r
+ * marked J6 SAMA5D3 Xplained board.  Type "help" to see a list of registered\r
+ * commands.  The FreeRTOS+CLI license is different to the FreeRTOS license, see\r
+ * http://www.FreeRTOS.org/cli for license and usage details.  The default baud\r
+ * rate is 115200.\r
  *\r
  * "Reg test" tasks - These fill both the core and floating point registers with\r
  * known values, then check that each register maintains its expected value for\r
 #define mainBLOCK_Q_PRIORITY                           ( tskIDLE_PRIORITY + 2UL )\r
 #define mainCREATOR_TASK_PRIORITY                      ( tskIDLE_PRIORITY + 3UL )\r
 #define mainFLOP_TASK_PRIORITY                         ( tskIDLE_PRIORITY )\r
-#define mainUART_COMMAND_CONSOLE_STACK_SIZE    ( configMINIMAL_STACK_SIZE * 3UL )\r
+#define mainCDC_COMMAND_CONSOLE_STACK_SIZE     ( configMINIMAL_STACK_SIZE * 2UL )\r
 #define mainCOM_TEST_TASK_PRIORITY                     ( tskIDLE_PRIORITY + 2 )\r
 #define mainCHECK_TASK_PRIORITY                                ( configMAX_PRIORITIES - 1 )\r
 #define mainQUEUE_OVERWRITE_PRIORITY           ( tskIDLE_PRIORITY )\r
 \r
-/* The priority used by the UART command console task. */\r
+/* The initial priority used by the UART command console task. */\r
 #define mainUART_COMMAND_CONSOLE_TASK_PRIORITY ( configMAX_PRIORITIES - 2 )\r
 \r
 /* The LED used by the check timer. */\r
@@ -209,7 +208,7 @@ extern void vRegisterSampleCLICommands( void );
 /*\r
  * The task that manages the FreeRTOS+CLI input and output.\r
  */\r
-extern void vUARTCommandConsoleStart( uint16_t usStackSize, UBaseType_t uxPriority );\r
+extern void vUSBCommandConsoleStart( uint16_t usStackSize, UBaseType_t uxPriority );\r
 \r
 /*\r
  * A high priority task that does nothing other than execute at a pseudo random\r
@@ -227,7 +226,7 @@ stops incrementing, then an error has been found. */
 volatile unsigned long ulRegTest1LoopCounter = 0UL, ulRegTest2LoopCounter = 0UL;\r
 \r
 /*-----------------------------------------------------------*/\r
-#warning Check demo and source folders for _RB_\r
+\r
 void main_full( void )\r
 {\r
        /* Start all the other standard demo/test tasks.  They have not particular\r
@@ -248,7 +247,7 @@ void main_full( void )
 \r
        /* Start the tasks that implements the command console on the UART, as\r
        described above. */\r
-       vUARTCommandConsoleStart( mainUART_COMMAND_CONSOLE_STACK_SIZE, mainUART_COMMAND_CONSOLE_TASK_PRIORITY );\r
+       vUSBCommandConsoleStart( mainCDC_COMMAND_CONSOLE_STACK_SIZE, mainUART_COMMAND_CONSOLE_TASK_PRIORITY );\r
 \r
        /* Register the standard CLI commands. */\r
        vRegisterSampleCLICommands();\r