mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:53:34 +08:00
Fixes mostly related to touchscreen on Shenzhou board (still does not work)
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5196 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -6,8 +6,15 @@ config INPUT_TSC2007
|
||||
bool "TI TSC2007 touchscreen controller"
|
||||
default n
|
||||
select I2C
|
||||
---help---
|
||||
Enable support for the TI TSC2007 touchscreen controller
|
||||
|
||||
|
||||
config INPUT_ADS7843E
|
||||
bool "TI ADS7843E touchscreen controller"
|
||||
bool "TI ADS7843/TSC2046 touchscreen controller"
|
||||
default n
|
||||
select SPI
|
||||
---help---
|
||||
Enable support for the TI/Burr-Brown ADS7842 touchscreen controller. I believe
|
||||
that driver should be compatibile with the TI/Burr-Brown TSC2046 and XPT2046
|
||||
touchscreen controllers as well.
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
* "Touch Screen Controller, ADS7843," Burr-Brown Products from Texas
|
||||
* Instruments, SBAS090B, September 2000, Revised May 2002"
|
||||
*
|
||||
* See also:
|
||||
* "Low Voltage I/O Touch Screen Controller, TSC2046," Burr-Brown Products
|
||||
* from Texas Instruments, SBAS265F, October 2002, Revised August 2007.
|
||||
*
|
||||
* "XPT2046 Data Sheet," Shenzhen XPTek Technology Co., Ltd, 2007
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@@ -566,7 +572,7 @@ static void ads7843e_worker(FAR void *arg)
|
||||
/* Check for pen up or down by reading the PENIRQ GPIO. */
|
||||
|
||||
pendown = config->pendown(config);
|
||||
|
||||
dbg("pendown: %d\n", pendown); // REMOVE ME
|
||||
/* Handle the change from pen down to pen up */
|
||||
|
||||
if (!pendown)
|
||||
@@ -637,6 +643,7 @@ static void ads7843e_worker(FAR void *arg)
|
||||
/* Exit, re-enabling ADS7843E interrupts */
|
||||
|
||||
errout:
|
||||
dbg("Exiting\n"); // REMOVE ME
|
||||
(void)ads7843e_sendcmd(priv, ADS7843_CMD_ENABPINIRQ);
|
||||
config->enable(config, true);
|
||||
}
|
||||
|
||||
@@ -8,6 +8,12 @@
|
||||
* "Touch Screen Controller, ADS7843," Burr-Brown Products from Texas
|
||||
* Instruments, SBAS090B, September 2000, Revised May 2002"
|
||||
*
|
||||
* See also:
|
||||
* "Low Voltage I/O Touch Screen Controller, TSC2046," Burr-Brown Products
|
||||
* from Texas Instruments, SBAS265F, October 2002, Revised August 2007."
|
||||
*
|
||||
* "XPT2046 Data Sheet," Shenzhen XPTek Technology Co., Ltd, 2007
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
|
||||
Reference in New Issue
Block a user