mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user