mirror of
https://github.com/FreeRTOS/FreeRTOS.git
synced 2025-06-25 02:26:34 +08:00
Moved where LCD_Init() is called from so it cannot call vTaskDelay() before the scheduler is started.
This commit is contained in:
@ -250,7 +250,6 @@ static void prvSetupHardware( void )
|
|||||||
SCU_AHBPeriphReset(__VIC, DISABLE);
|
SCU_AHBPeriphReset(__VIC, DISABLE);
|
||||||
|
|
||||||
/* Peripheral initialisation. */
|
/* Peripheral initialisation. */
|
||||||
LCD_Init();
|
|
||||||
vParTestInitialise();
|
vParTestInitialise();
|
||||||
}
|
}
|
||||||
/*-----------------------------------------------------------*/
|
/*-----------------------------------------------------------*/
|
||||||
@ -397,6 +396,8 @@ portCHAR *pcString;
|
|||||||
scope variable anyway. */
|
scope variable anyway. */
|
||||||
pxLCDQueue = ( xQueueHandle * ) pvParameters;
|
pxLCDQueue = ( xQueueHandle * ) pvParameters;
|
||||||
|
|
||||||
|
LCD_Init();
|
||||||
|
|
||||||
for( ;; )
|
for( ;; )
|
||||||
{
|
{
|
||||||
/* Wait for a message to arrive. */
|
/* Wait for a message to arrive. */
|
||||||
|
Reference in New Issue
Block a user