summaryrefslogtreecommitdiff
path: root/apps/examples/nx/nx_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/examples/nx/nx_main.c')
-rw-r--r--apps/examples/nx/nx_main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/examples/nx/nx_main.c b/apps/examples/nx/nx_main.c
index ba5a1077e..e9d3eaa92 100644
--- a/apps/examples/nx/nx_main.c
+++ b/apps/examples/nx/nx_main.c
@@ -41,6 +41,7 @@
#include <sys/types.h>
#include <sys/boardctl.h>
+
#include <stdint.h>
#include <stdbool.h>
#include <stdio.h>
@@ -52,13 +53,15 @@
#include <errno.h>
#include <debug.h>
+#include <nuttx/arch.h>
+#include <nuttx/board.h>
+
#ifdef CONFIG_NX_LCDDRIVER
# include <nuttx/lcd/lcd.h>
#else
# include <nuttx/video/fb.h>
#endif
-#include <nuttx/arch.h>
#include <nuttx/nx/nx.h>
#include <nuttx/nx/nxtk.h>
#include <nuttx/nx/nxfonts.h>
@@ -441,20 +444,21 @@ static inline int nxeg_suinitialize(void)
/* Initialize the LCD device */
printf("nxeg_initialize: Initializing LCD\n");
- ret = up_lcdinitialize();
+ ret = board_lcd_initialize();
if (ret < 0)
{
- printf("nxeg_initialize: up_lcdinitialize failed: %d\n", -ret);
+ printf("nxeg_initialize: board_lcd_initialize failed: %d\n", -ret);
g_exitcode = NXEXIT_LCDINITIALIZE;
return ERROR;
}
/* Get the device instance */
- dev = up_lcdgetdev(CONFIG_EXAMPLES_NX_DEVNO);
+ dev = board_lcd_getdev(CONFIG_EXAMPLES_NX_DEVNO);
if (!dev)
{
- printf("nxeg_initialize: up_lcdgetdev failed, devno=%d\n", CONFIG_EXAMPLES_NX_DEVNO);
+ printf("nxeg_initialize: board_lcd_getdev failed, devno=%d\n",
+ CONFIG_EXAMPLES_NX_DEVNO);
g_exitcode = NXEXIT_LCDGETDEV;
return ERROR;
}