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 1d840fd976
commit ebb17341d0
3 changed files with 12 additions and 7 deletions

View file

@ -544,3 +544,8 @@
NuttX 7.6 and previous versions of the UnitTest code.
1.15 2015-xx-xx Gregory Nutt <gnutt@nuttx.org>
* In NuttX 7.9, the interface arch_tcinitialize() was replaced with the
boardctl() interface. Old versions of NxWM will then be incompatible
with Versions of NuttX at 7.9 and beyond (2015-03-31).

11
Kconfig
View file

@ -782,12 +782,11 @@ config NXWM_TOUCHSCREEN_DEVINIT
depends on !BUILD_PROTECTED && !BUILD_KERNEL
---help---
It this option is selected, then the NxWM:CTouchscreen listener
thread will call a function arch_tcinitialize(NXWM_TOUCHSCREEN_DEVNO)
in order to instantiate the touchscreen driver at path
NXWM_TOUCHSCREEN_DEVPATH. If NXWM_TOUCHSCREEN_DEVINIT is not
selected, then the NxWM:CTouchscreen listener thread will assume
that the driver has already been initialized at
NXWM_TOUCHSCREEN_DEVPATH.
thread will call a function boardctl() in order to instantiate the
touchscreen driver at path NXWM_TOUCHSCREEN_DEVPATH. If
NXWM_TOUCHSCREEN_DEVINIT is not selected, then the NxWM:CTouchscreen
listener thread will assume that the driver has already been
initialized at NXWM_TOUCHSCREEN_DEVPATH.
NOTE that in the kernel build, all touchscreen initialize must be
performed in kernel logic prior to the execution of NxWM.

View file

@ -43,6 +43,7 @@
#include <cerrno>
#include <cfcntl>
#include <sys/boardctl.h>
#include <sched.h>
#include <pthread.h>
#include <assert.h>
@ -281,7 +282,7 @@ FAR void *CTouchscreen::listener(FAR void *arg)
#ifdef CONFIG_NXWM_TOUCHSCREEN_DEVINIT
// Initialize the touchscreen device
int ret = arch_tcinitialize(CONFIG_NXWM_TOUCHSCREEN_DEVNO);
int ret = boardctl(BOARDIOC_TSCTEST_SETUP, CONFIG_NXWM_TOUCHSCREEN_DEVNO);
if (ret < 0)
{
dbg("ERROR Failed initialize the touchscreen device: %d\n", ret);