4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-01-18 20:03:48 +08:00

[bsp][stm32f429-disco] Fix missing of info->framebuffer

This commit is contained in:
xuzhuoyi 2018-10-02 22:12:53 +08:00
parent d9dcfb13d0
commit 1ca25164fc

View File

@ -906,7 +906,7 @@ static rt_err_t lcd_control(rt_device_t dev, int cmd, void *args)
info->bits_per_pixel = 16;
info->pixel_format = RTGRAPHIC_PIXEL_FORMAT_RGB565;
info->framebuffer = RT_NULL;
info->framebuffer = (rt_uint8_t *)LtdcHandler.LayerCfg[ActiveLayer].FBStartAdress;
info->width = 240;
info->height = 320;
}