diff options
| author | cx <[email protected]> | 2023-08-09 01:19:40 -0400 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2023-08-09 02:48:36 -0400 |
| commit | 9968f84c2b252346473586ad435eb223f3a6641f (patch) | |
| tree | 8ab9e65f273895ff5506002611dfdf35e90b7f95 | |
| parent | 5ac509b6d031b29e2d95c52fc179771e62664378 (diff) | |
[stm32][pandora] fix LCD init ahead PWM
| -rw-r--r-- | bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c index 65a7cb99c0..5fc1417a5c 100644 --- a/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c +++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/lcd/drv_lcd.c @@ -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 * @@ -120,9 +120,7 @@ static void lcd_gpio_init(void) rt_pin_mode(LCD_RES_PIN, PIN_MODE_OUTPUT); rt_pin_write(LCD_RES_PIN, PIN_LOW); - - //wait at least 100ms for reset - rt_thread_delay(RT_TICK_PER_SECOND / 10); + rt_thread_delay(RT_TICK_PER_SECOND / 10); /* wait at least 100ms for reset */ rt_pin_write(LCD_RES_PIN, PIN_HIGH); } @@ -216,7 +214,7 @@ static int rt_hw_lcd_init(void) return RT_EOK; } -INIT_DEVICE_EXPORT(rt_hw_lcd_init); +INIT_COMPONENT_EXPORT(rt_hw_lcd_init); #ifndef BSP_USING_LVGL /** |
