[stm32][pandora] fix LCD init ahead PWM

This commit is contained in:
cx 2023-08-09 01:19:40 -04:00 committed by Meco Man
parent 5ac509b6d0
commit 9968f84c2b
1 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2021, RT-Thread Development Team * Copyright (c) 2006-2023, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -120,9 +120,7 @@ static void lcd_gpio_init(void)
rt_pin_mode(LCD_RES_PIN, PIN_MODE_OUTPUT); rt_pin_mode(LCD_RES_PIN, PIN_MODE_OUTPUT);
rt_pin_write(LCD_RES_PIN, PIN_LOW); rt_pin_write(LCD_RES_PIN, PIN_LOW);
rt_thread_delay(RT_TICK_PER_SECOND / 10); /* wait at least 100ms for reset */
//wait at least 100ms for reset
rt_thread_delay(RT_TICK_PER_SECOND / 10);
rt_pin_write(LCD_RES_PIN, PIN_HIGH); rt_pin_write(LCD_RES_PIN, PIN_HIGH);
} }
@ -216,7 +214,7 @@ static int rt_hw_lcd_init(void)
return RT_EOK; return RT_EOK;
} }
INIT_DEVICE_EXPORT(rt_hw_lcd_init); INIT_COMPONENT_EXPORT(rt_hw_lcd_init);
#ifndef BSP_USING_LVGL #ifndef BSP_USING_LVGL
/** /**