diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-11 00:05:25 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-11 00:05:25 +0000 |
commit | a280d993608d0c40ad0b4efc8adcbf72f67d53a4 (patch) | |
tree | 0c718467856492451acfb8af51db3d59abad08fb /nuttx/configs/stm3240g-eval/src | |
parent | 68f3044b5099572850a9e81a1c63161c20809547 (diff) | |
download | px4-nuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.tar.gz px4-nuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.tar.bz2 px4-nuttx-a280d993608d0c40ad0b4efc8adcbf72f67d53a4.zip |
NxWM: Finishes touchscreen implementation; NuttX: Standardize touchscreen initialization interfaces for all boards
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4721 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/src')
-rw-r--r-- | nuttx/configs/stm3240g-eval/src/up_stmpe11.c | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/nuttx/configs/stm3240g-eval/src/up_stmpe11.c b/nuttx/configs/stm3240g-eval/src/up_stmpe11.c index a9402eda7..e06e203e7 100644 --- a/nuttx/configs/stm3240g-eval/src/up_stmpe11.c +++ b/nuttx/configs/stm3240g-eval/src/up_stmpe11.c @@ -252,16 +252,29 @@ static void stmpe11_clear(FAR struct stmpe11_config_s *state) * Name: arch_tcinitialize * * Description: - * Initialize the touchscreen device + * Each board that supports a touchscreen device must provide this function. + * This function is called by application-specific, setup logic to + * configure the touchscreen device. This function will register the driver + * as /dev/inputN where N is the minor device number. + * + * Input Parameters: + * minor - The input device minor number + * + * Returned Value: + * Zero is returned on success. Otherwise, a negated errno value is + * returned to indicate the nature of the failure. * ****************************************************************************/ -int arch_tcinitialize(void) +int arch_tcinitialize(int minor) { #ifndef CONFIG_STMPE11_TSC_DISABLE FAR struct i2c_dev_s *dev; int ret; + idbg("minor %d\n", minor); + DEBUGASSERT(minor == 0); + /* Check if we are already initialized */ if (!g_stmpe11config.handle) @@ -312,7 +325,15 @@ int arch_tcinitialize(void) * Name: arch_tcuninitialize * * Description: - * Un-initialize the touchscreen device + * Each board that supports a touchscreen device must provide this function. + * This function is called by application-specific, setup logic to + * uninitialize the touchscreen device. + * + * Input Parameters: + * None + * + * Returned Value: + * None. * ****************************************************************************/ |