Browse Source

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

xuzhuoyi 6 years ago
parent
commit
1ca25164fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bsp/stm32f429-disco/drivers/drv_lcd.c

+ 1 - 1
bsp/stm32f429-disco/drivers/drv_lcd.c

@@ -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;
 	}