diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-04-04 11:49:15 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-04-04 11:49:15 -0600 |
commit | b262b5a5c69de0d0c304d3f1e1cd72c17ced05b8 (patch) | |
tree | 73a53c3adda267ac7344c722f782fab2102c7e00 /apps/examples/nxlines/nxlines_main.c | |
parent | 6c0df9bdef90762526d5c541b04f6e2b701c8628 (diff) | |
download | px4-nuttx-b262b5a5c69de0d0c304d3f1e1cd72c17ced05b8.tar.gz px4-nuttx-b262b5a5c69de0d0c304d3f1e1cd72c17ced05b8.tar.bz2 px4-nuttx-b262b5a5c69de0d0c304d3f1e1cd72c17ced05b8.zip |
More renaming: up_lcdinitialize->board_lcd_initialize, up_lcdgetdev->board_lcd_getdev, up_lcduninitialize->board_lcd_uninitialize
Diffstat (limited to 'apps/examples/nxlines/nxlines_main.c')
-rw-r--r-- | apps/examples/nxlines/nxlines_main.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/examples/nxlines/nxlines_main.c b/apps/examples/nxlines/nxlines_main.c index 145b5b754..7f4b1deba 100644 --- a/apps/examples/nxlines/nxlines_main.c +++ b/apps/examples/nxlines/nxlines_main.c @@ -50,13 +50,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/nxglib.h> @@ -137,20 +139,21 @@ static inline int nxlines_initialize(void) /* Initialize the LCD device */ printf("nxlines_initialize: Initializing LCD\n"); - ret = up_lcdinitialize(); + ret = board_lcd_initialize(); if (ret < 0) { - printf("nxlines_initialize: up_lcdinitialize failed: %d\n", -ret); + printf("nxlines_initialize: board_lcd_initialize failed: %d\n", -ret); g_nxlines.code = NXEXIT_LCDINITIALIZE; return ERROR; } /* Get the device instance */ - dev = up_lcdgetdev(CONFIG_EXAMPLES_NXLINES_DEVNO); + dev = board_lcd_getdev(CONFIG_EXAMPLES_NXLINES_DEVNO); if (!dev) { - printf("nxlines_initialize: up_lcdgetdev failed, devno=%d\n", CONFIG_EXAMPLES_NXLINES_DEVNO); + printf("nxlines_initialize: board_lcd_getdev failed, devno=%d\n", + CONFIG_EXAMPLES_NXLINES_DEVNO); g_nxlines.code = NXEXIT_LCDGETDEV; return ERROR; } |