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:
Gregory Nutt
2015-03-31 13:21:25 -06:00
parent 15b90de919
commit fdfe38ea0d
28 changed files with 130 additions and 86 deletions
+5 -4
View File
@@ -45,6 +45,7 @@
#include <assert.h>
#include <errno.h>
#include <nuttx/board.h>
#include <nuttx/spi/spi.h>
#include <nuttx/spi/spi_bitbang.h>
#include <nuttx/input/touchscreen.h>
@@ -335,7 +336,7 @@ static FAR struct spi_dev_s *sam_tsc_spiinitialize(void)
****************************************************************************/
/****************************************************************************
* Name: arch_tcinitialize
* Name: board_tsc_setup
*
* Description:
* Each board that supports a touchscreen device must provide this function.
@@ -352,7 +353,7 @@ static FAR struct spi_dev_s *sam_tsc_spiinitialize(void)
*
****************************************************************************/
int arch_tcinitialize(int minor)
int board_tsc_setup(int minor)
{
FAR struct spi_dev_s *dev;
static bool initialized = false;
@@ -405,7 +406,7 @@ int arch_tcinitialize(int minor)
}
/****************************************************************************
* Name: arch_tcuninitialize
* Name: board_tsc_teardown
*
* Description:
* Each board that supports a touchscreen device must provide this function.
@@ -420,7 +421,7 @@ int arch_tcinitialize(int minor)
*
****************************************************************************/
void arch_tcuninitialize(void)
void board_tsc_teardown(void)
{
/* No support for un-initializing the touchscreen XPT2046 device. It will
* continue to run and process touch interrupts in the background.