summaryrefslogtreecommitdiff
path: root/nuttx/configs/boardctl.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2015-03-31 13:21:25 -0600
committerGregory Nutt <gnutt@nuttx.org>2015-03-31 13:21:25 -0600
commit0d085198e9bafae34dcb77d1e75305785f1e5d08 (patch)
tree335f2ab4a732bac3b6b61ea9394e93241d3183eb /nuttx/configs/boardctl.c
parent6fcc161c79d4e24444997e35e5a37d7aff6049b9 (diff)
downloadpx4-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 'nuttx/configs/boardctl.c')
-rwxr-xr-xnuttx/configs/boardctl.c35
1 files changed, 21 insertions, 14 deletions
diff --git a/nuttx/configs/boardctl.c b/nuttx/configs/boardctl.c
index a41c1d2e6..d865fff68 100755
--- a/nuttx/configs/boardctl.c
+++ b/nuttx/configs/boardctl.c
@@ -98,24 +98,31 @@ int boardctl(unsigned int cmd, uintptr_t arg)
break;
#ifdef CONFIG_BOARDCTL_TSCTEST
- /* CMD: BOARDIOC_TSCTEST
+ /* CMD: BOARDIOC_TSCTEST_SETUP
* DESCRIPTION: Touchscreen controller test configuration
- * ARG: 0: Setup touchscreen test, 1: Teardown touchscreen test
- * CONFIGURATION: CONFIG_LIB_BOARDCTL &&
- * DEPENDENCIES: Board logic must provide board_tsc_setup() and
- * board_tsc_teardown().
+ * ARG: Touch controller device minor number
+ * CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_TSCTEST
+ * DEPENDENCIES: Board logic must provide board_tsc_setup()
*/
- case BOARDIOC_TSCTEST:
- if (arg)
- {
- ret = board_tsc_setup();
- }
- else
- {
- ret = board_tsc_teardown();
- }
+ case BOARDIOC_TSCTEST_SETUP:
+ {
+ ret = board_tsc_setup((int)arg);
+ }
+ break;
+
+ /* CMD: BOARDIOC_TSCTEST_TEARDOWN
+ * DESCRIPTION: Touchscreen controller test configuration
+ * ARG: None
+ * CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_TSCTEST
+ * DEPENDENCIES: Board logic must provide board_tsc_teardown()
+ */
+ case BOARDIOC_TSCTEST_TEARDOWN:
+ {
+ board_tsc_teardown();
+ ret = OK;
+ }
break;
#endif