Kconfigs: Add CONFIG_LCD_UPDATE that works like CONFIG_NX_UPDATE but can be enabled without enabling the graphics subsystem.

This commit is contained in:
Gregory Nutt
2017-11-04 14:08:05 -06:00
parent 71d4bad819
commit 205fe8053f
8 changed files with 28 additions and 21 deletions
+8 -4
View File
@@ -843,13 +843,17 @@ int nx_bitmap(NXWINDOW hwnd, FAR const struct nxgl_rect_s *dest,
* - When VNC is enabled. This is case, this callout is necessary to
* update the remote frame buffer to match the local framebuffer.
*
* When this feature is enabled, some external logic must provide this
* interface. This is the function that will handle the notification. It
* receives the rectangular region that was updated on the provided plane.
* When this feature is enabled, some external logic must provide this
* interface. This is the function that will handle the notification. It
* receives the rectangular region that was updated on the provided plane.
*
* NOTE: This function is also required for use with the LCD framebuffer
* driver front end when CONFIG_LCD_UPDATE=y, although that use does not
* depend on CONFIG_NX (and this function seems misnamed in that case).
*
****************************************************************************/
#ifdef CONFIG_NX_UPDATE
#if defined(CONFIG_NX_UPDATE) || defined(CONFIG_LCD_UPDATE)
void nx_notify_rectangle(FAR NX_PLANEINFOTYPE *pinfo,
FAR const struct nxgl_rect_s *rect);
#endif
+1 -1
View File
@@ -211,7 +211,7 @@
# define FBIOPUT_CURSOR _FBIOC(0x0006) /* Set cursor attributes */
/* Argument: read-only struct fb_setcursor_s */
#endif
#ifdef CONFIG_NX_UPDATE
#ifdef CONFIG_LCD_UPDATE
# define FBIO_UPDATE _FBIOC(0x0007) /* Update a rectangular region in the framebuffer */
/* Argument: read-only struct nxgl_rect_s */
#endif