mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
Rename up_nxdrvinit() to board_graphics_setup(). Add CONFIG_BOARDCTL_GRAPHICS that will enabled calls to board_graphics_setup() from boardctrl(). In apps/ and NxWidgts/, replace all calls to up_nxdrvinit with calls to boardctl().
This commit is contained in:
+4
-3
@@ -675,9 +675,10 @@ config NXSTART_EXTERNINIT
|
||||
---help---
|
||||
Define to support external display initialization by platform-
|
||||
specific code. This this option is defined, then nx_start() will
|
||||
call up_nxdrvinit(CONFIG_NXSTART_DEVNO) to initialize the graphics
|
||||
device. This option is necessary if display is used that cannot be
|
||||
initialized using the standard LCD or framebuffer interfaces.
|
||||
call board_graphics_setup(CONFIG_NXSTART_DEVNO) to initialize the
|
||||
graphics device. This option is necessary if display is used that
|
||||
cannot be initialized using the standard LCD or framebuffer
|
||||
interfaces.
|
||||
|
||||
config NXSTART_SERVERPRIO
|
||||
int "NX Server priority"
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <errno.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <nuttx/board.h>
|
||||
#include <nuttx/kthread.h>
|
||||
#include <nuttx/nx/nx.h>
|
||||
|
||||
@@ -96,10 +97,10 @@ int nx_server(int argc, char *argv[])
|
||||
#if defined(CONFIG_NXSTART_EXTERNINIT)
|
||||
/* Use external graphics driver initialization */
|
||||
|
||||
dev = up_nxdrvinit(CONFIG_NXSTART_DEVNO);
|
||||
dev = board_graphics_setup(CONFIG_NXSTART_DEVNO);
|
||||
if (!dev)
|
||||
{
|
||||
gdbg("ERROR: up_nxdrvinit failed, devno=%d\n", CONFIG_NXSTART_DEVNO);
|
||||
gdbg("ERROR: board_graphics_setup failed, devno=%d\n", CONFIG_NXSTART_DEVNO);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user