Re: Going to look into the touch sensor input on the NXP FRDM boards

Lars Knudsen

Hi Jan,

In this case, it *is* quite NXP/FRDM specific. However, in general, i think it would fit well in the sensor enums to support XYZ location in addition to XYZ acceleration and change in orientation (gyro), which are there.


On Wed, Aug 1, 2018, 18:38 Jan Van Winkel <jan.van_winkel@...> wrote:
Hi Lars,

I only played with the idea to integrate a touch controller but had no time yet to start on it.
On the location of the driver I have the feeling that a new, input device, API would  be more suitable then reusing the sensor framework.


On Wed, Aug 1, 2018 at 5:22 PM Lars Knudsen <larsgk@...> wrote:

I am planning to do support for the TSI on the Freescale/NXP FRDM boards and was wondering if work already has been done in the area.

I found but didn't see any tie to existing code, e.g. for the FRDM-KL25Z 

Did anyone do anything in the area?  If not, I'd like to do it as a sensor driver, but have a few questions:

1. as this is driven by the mcu and the implementation is very specific to the board(s), will it still fit under /drivers/sensor ?

2. mapping the 1D 'distance'/position on the touch slider to a sensor channel, the closest is SENSOR_CHAN_DISTANCE, which (by comment) fits a different purpose.  Might it make sense to introduce XYZ enums for position/distance here:


Join to automatically receive all group messages.