configs/stm32f103-minimum: Add framebuffer driver initialization for stm32f103-minimum board

This commit is contained in:
Alan Carvalho de Assis 2017-11-22 06:32:36 -06:00 committed by Gregory Nutt
parent 84de1fed9b
commit 389cc49447

View File

@ -73,6 +73,10 @@
# include <nuttx/leds/userled.h>
#endif
#ifdef CONFIG_VIDEO_FB
# include <nuttx/video/fb.h>
#endif
#include "stm32f103_minimum.h"
/* Conditional logic in stm32f103_minimum.h will determine if certain features
@ -153,6 +157,16 @@ int stm32_bringup(void)
}
#endif
#ifdef CONFIG_VIDEO_FB
/* Initialize and register the framebuffer driver */
ret = fb_register(0, 0);
if (ret < 0)
{
syslog(LOG_ERR, "ERROR: fb_register() failed: %d\n", ret);
}
#endif
#ifdef CONFIG_MMCSD
ret = stm32_mmcsd_initialize(MMCSD_MINOR);
if (ret < 0)