diff --git a/libnxwidgets/src/cnxserver.cxx b/libnxwidgets/src/cnxserver.cxx index 1c28a6b4a..3ac00e7fb 100644 --- a/libnxwidgets/src/cnxserver.cxx +++ b/libnxwidgets/src/cnxserver.cxx @@ -41,6 +41,7 @@ #include #include + #include #include #include @@ -48,6 +49,8 @@ #include #include +#include + #ifdef CONFIG_NX_MULTIUSER # include # include @@ -138,19 +141,19 @@ bool CNxServer::connect(void) // Initialize the LCD device - ret = up_lcdinitialize(); + ret = board_lcd_initialize(); if (ret < 0) { - gdbg("up_lcdinitialize failed: %d\n", -ret); + gdbg("board_lcd_initialize failed: %d\n", -ret); return false; } // Get the device instance - m_hDevice = up_lcdgetdev(CONFIG_NXWIDGETS_DEVNO); + m_hDevice = board_lcd_getdev(CONFIG_NXWIDGETS_DEVNO); if (!m_hDevice) { - gdbg("up_lcdgetdev failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); + gdbg("board_lcd_getdev failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); return false; } @@ -368,19 +371,19 @@ int CNxServer::server(int argc, char *argv[]) #elif defined(CONFIG_NX_LCDDRIVER) // Initialize the LCD device - ret = up_lcdinitialize(); + ret = board_lcd_initialize(); if (ret < 0) { - gdbg("up_lcdinitialize failed: %d\n", -ret); + gdbg("board_lcd_initialize failed: %d\n", -ret); return EXIT_FAILURE; } // Get the device instance - dev = up_lcdgetdev(CONFIG_NXWIDGETS_DEVNO); + dev = board_lcd_getdev(CONFIG_NXWIDGETS_DEVNO); if (!dev) { - gdbg("up_lcdgetdev failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); + gdbg("board_lcd_getdev failed, devno=%d\n", CONFIG_NXWIDGETS_DEVNO); return EXIT_FAILURE; }