diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 13:21:25 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-03-31 13:21:25 -0600 |
commit | 0d085198e9bafae34dcb77d1e75305785f1e5d08 (patch) | |
tree | 335f2ab4a732bac3b6b61ea9394e93241d3183eb /NxWidgets/nxwm | |
parent | 6fcc161c79d4e24444997e35e5a37d7aff6049b9 (diff) | |
download | px4-nuttx-0d085198e9bafae34dcb77d1e75305785f1e5d08.tar.gz px4-nuttx-0d085198e9bafae34dcb77d1e75305785f1e5d08.tar.bz2 px4-nuttx-0d085198e9bafae34dcb77d1e75305785f1e5d08.zip |
rch_tcinitialize() and arch_tcunitinitialize() renamed to board_tsc_setup() and board_tsc_teardown(). These are not long called directly by applications but only indirectly throught the crappy boardctl() OS interface.
Diffstat (limited to 'NxWidgets/nxwm')
-rw-r--r-- | NxWidgets/nxwm/src/ctouchscreen.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/src/ctouchscreen.cxx b/NxWidgets/nxwm/src/ctouchscreen.cxx index dc462727d..3792811a4 100644 --- a/NxWidgets/nxwm/src/ctouchscreen.cxx +++ b/NxWidgets/nxwm/src/ctouchscreen.cxx @@ -43,6 +43,7 @@ #include <cerrno> #include <cfcntl> +#include <sys/boardctl.h> #include <sched.h> #include <pthread.h> #include <assert.h> @@ -281,7 +282,7 @@ FAR void *CTouchscreen::listener(FAR void *arg) #ifdef CONFIG_NXWM_TOUCHSCREEN_DEVINIT // Initialize the touchscreen device - int ret = arch_tcinitialize(CONFIG_NXWM_TOUCHSCREEN_DEVNO); + int ret = boardctl(BOARDIOC_TSCTEST_SETUP, CONFIG_NXWM_TOUCHSCREEN_DEVNO); if (ret < 0) { dbg("ERROR Failed initialize the touchscreen device: %d\n", ret); |