diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 16:20:21 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 16:20:21 -0600 |
commit | 1aa554ab19210a162ab3ba7f8a635b1f11586aa2 (patch) | |
tree | 32eded82fe4e2e27796081de9c73f57613d1a322 /apps/examples/nxlines/nxlines_main.c | |
parent | 89e6ac65fdaef533a95ad504bb18ec50c9cd977f (diff) | |
download | px4-nuttx-1aa554ab19210a162ab3ba7f8a635b1f11586aa2.tar.gz px4-nuttx-1aa554ab19210a162ab3ba7f8a635b1f11586aa2.tar.bz2 px4-nuttx-1aa554ab19210a162ab3ba7f8a635b1f11586aa2.zip |
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().
Diffstat (limited to 'apps/examples/nxlines/nxlines_main.c')
-rw-r--r-- | apps/examples/nxlines/nxlines_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/nxlines/nxlines_main.c b/apps/examples/nxlines/nxlines_main.c index 21798b7d1..145b5b754 100644 --- a/apps/examples/nxlines/nxlines_main.c +++ b/apps/examples/nxlines/nxlines_main.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/nxlines/nxlines_main.c * - * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2012, 2015 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -122,10 +122,10 @@ static inline int nxlines_initialize(void) /* Use external graphics driver initialization */ printf("nxlines_initialize: Initializing external graphics device\n"); - dev = up_nxdrvinit(CONFIG_EXAMPLES_NXLINES_DEVNO); + dev = boardctl(BOARDIOC_GRAPHICS_SETUP, CONFIG_EXAMPLES_NXLINES_DEVNO); if (!dev) { - printf("nxlines_initialize: up_nxdrvinit failed, devno=%d\n", + printf("nxlines_initialize: boardctl failed, devno=%d\n", CONFIG_EXAMPLES_NXLINES_DEVNO); g_nxlines.code = NXEXIT_EXTINITIALIZE; return ERROR; |