The two macros _FTS_CTL_IIC_ and _FTS_APK_DEBUG_ within focaltechcore.h is related to the upper layer APK application. _FTS_CTL_IIC provides driver interface on reading data and upgrading for the APK. FTS_APK_DEBUG provides driver interface for whole set testing with the APK. (Whole set testing can be done by either driver side or by Focaltech’s APK). FTS_SYSFS_DEBUG provides the interface for ADB command tuning. We recommend user to enable all 3 macros. Add the following code in static int fts_probe(struct i2c_client *client, const struct i2c_device_id *id)

shown in focaltech_core.c.

#ifdef FTS_SYSFS_DEBUG

fts_create_sysfs(client);

#endif

#ifdef FTS_CTL_IIC

if (ft_rw_iic_drv_init(client) < 0)

{

dev_err(&client->dev, "%s:[FTS] create fts control iic driver failed\n", __func__);

}

#endif

#ifdef FTS_APK_DEBUG

fts_create_apk_debug_channel(client);

#endif

FTS_CTL_IIC is implemented by focaltech_ctl.c. FTS_APK_DEBUG is implemented by focaltech_ex_fun.c.

results matching ""

    No results matching ""