]> git.sur5r.net Git - freertos/blobdiff - Demo/Cortex_STM32L152_IAR/main.c
Replace the function that returns the current run time counter value with a macro...
[freertos] / Demo / Cortex_STM32L152_IAR / main.c
index 4457cd0823bcf7613a2732d9942ada6d2b46f403..694a8c3ac5980f75c5caf1e8367d64bdc04f923d 100644 (file)
@@ -160,11 +160,15 @@ of the same message and indicate what the status actually is. */
 #define mainERROR_GEN_QUEUE_TEST               ( pdPASS + 3 )\r
 \r
 /* Baud rate used by the comtest tasks. */\r
-#define mainCOM_TEST_BAUD_RATE         ( 115200 )\r
+#define mainCOM_TEST_BAUD_RATE                 ( 115200 )\r
 \r
 /* The LED used by the comtest tasks. See the comtest.c file for more\r
 information. */\r
-#define mainCOM_TEST_LED                       ( 3 )\r
+#define mainCOM_TEST_LED                               ( 3 )\r
+\r
+/* The LCD task uses printf() so requires more stack than most of the other\r
+tasks. */\r
+#define mainLCD_TASK_STACK_SIZE                        ( configMINIMAL_STACK_SIZE * 2 )\r
 \r
 /*-----------------------------------------------------------*/\r
 \r
@@ -237,7 +241,7 @@ void main( void )
                \r
                /* Create the LCD and button poll tasks, as described at the top of this\r
                file. */\r
-               xTaskCreate( prvLCDTask, ( signed char * ) "LCD", configMINIMAL_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
+               xTaskCreate( prvLCDTask, ( signed char * ) "LCD", mainLCD_TASK_STACK_SIZE, NULL, mainLCD_TASK_PRIORITY, NULL );\r
                xTaskCreate( prvButtonPollTask, ( signed char * ) "ButPoll", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY, NULL );\r
                \r
                /* Create a subset of the standard demo tasks. */\r