From: richardbarry Date: Thu, 8 Mar 2007 21:08:52 +0000 (+0000) Subject: Moved where LCD_Init() is called from so it cannot call vTaskDelay() before the sched... X-Git-Tag: V4.2.1~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=45a065ef461a1a6badd34f6fd35cab975e0c29de;p=freertos Moved where LCD_Init() is called from so it cannot call vTaskDelay() before the scheduler is started. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@68 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/ARM9_STR91X_IAR/main.c b/Demo/ARM9_STR91X_IAR/main.c index f14d2c138..aa3cd2578 100644 --- a/Demo/ARM9_STR91X_IAR/main.c +++ b/Demo/ARM9_STR91X_IAR/main.c @@ -250,7 +250,6 @@ static void prvSetupHardware( void ) SCU_AHBPeriphReset(__VIC, DISABLE); /* Peripheral initialisation. */ - LCD_Init(); vParTestInitialise(); } /*-----------------------------------------------------------*/ @@ -397,6 +396,8 @@ portCHAR *pcString; scope variable anyway. */ pxLCDQueue = ( xQueueHandle * ) pvParameters; + LCD_Init(); + for( ;; ) { /* Wait for a message to arrive. */