From 1aa554ab19210a162ab3ba7f8a635b1f11586aa2 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 31 Mar 2015 16:20:21 -0600 Subject: 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(). --- NxWidgets/libnxwidgets/src/cnxserver.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'NxWidgets') diff --git a/NxWidgets/libnxwidgets/src/cnxserver.cxx b/NxWidgets/libnxwidgets/src/cnxserver.cxx index d47fa74c1..1c28a6b4a 100644 --- a/NxWidgets/libnxwidgets/src/cnxserver.cxx +++ b/NxWidgets/libnxwidgets/src/cnxserver.cxx @@ -1,7 +1,7 @@ /**************************************************************************** * NxWidgets/libnxwidgets/src/cnxserver.cxx * - * Copyright (C) 2012, 2013 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2013, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt * * Redistribution and use in source and binary forms, with or without @@ -40,6 +40,7 @@ #include #include +#include #include #include #include @@ -125,10 +126,10 @@ bool CNxServer::connect(void) #if defined(CONFIG_NXWIDGETS_EXTERNINIT) // Use external graphics driver initialization - m_hDevice = up_nxdrvinit(CONFIG_NXWIDGETS_DEVNO); + m_hDevice = boardctl(BOARDIOC_GRAPHICS_SETUP, CONFIG_NXWIDGETS_DEVNO); if (!m_hDevice) { - gdbg("up_nxdrvinit failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); + gdbg("boardctl failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); return false; } @@ -357,10 +358,10 @@ int CNxServer::server(int argc, char *argv[]) #if defined(CONFIG_NXWIDGETS_EXTERNINIT) // Use external graphics driver initialization - dev = up_nxdrvinit(CONFIG_NXWIDGETS_DEVNO); + dev = boardctl(BOARDIOC_GRAPHICS_SETUP, CONFIG_NXWIDGETS_DEVNO); if (!dev) { - gdbg("up_nxdrvinit failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); + gdbg("boardctl failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); return EXIT_FAILURE; } -- cgit v1.2.3