More renaming: up_lcdinitialize->board_lcd_initialize, up_lcdgetdev->board_lcd_getdev, up_lcduninitialize->board_lcd_uninitialize

This commit is contained in:
Gregory Nutt 2015-04-04 11:49:15 -06:00
parent e25fb828ef
commit 3542cd0282

View File

@ -41,6 +41,7 @@
#include <sys/types.h>
#include <sys/boardctl.h>
#include <stdint.h>
#include <stdbool.h>
#include <unistd.h>
@ -48,6 +49,8 @@
#include <cerrno>
#include <debug.h>
#include <nuttx/board.h>
#ifdef CONFIG_NX_MULTIUSER
# include <sched.h>
# include <pthread.h>
@ -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;
}