mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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.
This commit is contained in:
+53
-1
@@ -142,7 +142,59 @@ void board_initialize(void);
|
||||
|
||||
#ifdef CONFIG_LIB_BOARDCTL
|
||||
int board_app_initialize(void);
|
||||
#endif
|
||||
#endif /* CONFIG_LIB_BOARDCTL */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_tsc_setup
|
||||
*
|
||||
* Description:
|
||||
* 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.
|
||||
*
|
||||
* This is an internal OS interface but may be invoked indirectly from
|
||||
* application-level touchscreen testing logic (perhaps by
|
||||
* apps/examples/touchscreen). If CONFIG_LIB_BOARDCTL=y and
|
||||
* CONFIG_BOARDCTL_TSCTEST=y, then this functions will be invoked via the
|
||||
* (non-standard) boardctl() interface using the commands
|
||||
* BOARDIOC_TSCTEST_SETUP command.
|
||||
*
|
||||
* 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 board_tsc_setup(int minor);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_tsc_teardown
|
||||
*
|
||||
* Description:
|
||||
* 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.
|
||||
*
|
||||
* This is an internal OS interface but may be invoked indirectly from
|
||||
* application-level touchscreen testing logic (perhaps by
|
||||
* apps/examples/touchscreen). If CONFIG_LIB_BOARDCTL=y and
|
||||
* CONFIG_BOARDCTL_TSCTEST=y, then this functions will be invoked via the
|
||||
* (non-standard) boardctl() interface using the commands
|
||||
* BOARDIOC_TSCTEST_TEARDOWN command.
|
||||
*
|
||||
* Input Parameters:
|
||||
* None
|
||||
*
|
||||
* Returned Value:
|
||||
* None.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void board_tsc_teardown(void);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: board_led_initialize
|
||||
|
||||
@@ -134,44 +134,6 @@ extern "C"
|
||||
#define EXTERN extern
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Name: arch_tcinitialize
|
||||
*
|
||||
* Description:
|
||||
* 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(int minor);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: arch_tcuninitialize
|
||||
*
|
||||
* Description:
|
||||
* 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.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void arch_tcuninitialize(void);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+12
-6
@@ -58,16 +58,22 @@
|
||||
* CONFIGURATION: CONFIG_LIB_BOARDCTL
|
||||
* DEPENDENCIES: Board logic must provide board_app_initialization
|
||||
*
|
||||
* CMD: BOARDIOC_TSCTEST
|
||||
* CMD: BOARDIOC_TSCTEST_SETUP
|
||||
* DESCRIPTION: Touchscreen controller test configuration
|
||||
* ARG: 0: Setup touchscreen test, 1: Teardown touchscreen test
|
||||
* ARG: Touch controller device minor number
|
||||
* CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_TSCTEST
|
||||
* DEPENDENCIES: Board logic must provide board_tsc_setup() and
|
||||
* board_tsc_teardown().
|
||||
* DEPENDENCIES: Board logic must provide board_tsc_setup()
|
||||
*
|
||||
* 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()
|
||||
*/
|
||||
|
||||
#define BOARDIOC_INIT _BOARDIOC(0x0001)
|
||||
#define BOARDIOC_TSCTEST _BOARDIOC(0x0002)
|
||||
#define BOARDIOC_INIT _BOARDIOC(0x0001)
|
||||
#define BOARDIOC_TSCTEST_SETUP _BOARDIOC(0x0002)
|
||||
#define BOARDIOC_TSCTEST_TEARDOWN _BOARDIOC(0x0003)
|
||||
|
||||
/****************************************************************************
|
||||
* Public Type Definitions
|
||||
|
||||
Reference in New Issue
Block a user