Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
b841dac0
Commit
b841dac0
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Minor clean-up while debugging the Open1788 touchscreen
parent
71fb1cfd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/input/ads7843e.h
+10
-9
10 additions, 9 deletions
drivers/input/ads7843e.h
with
10 additions
and
9 deletions
drivers/input/ads7843e.h
+
10
−
9
View file @
b841dac0
...
...
@@ -73,21 +73,22 @@
/* ADS7843E Interfaces *********************************************************************/
/* ADS7843E command bit settings */
#define ADS7843E_CMD_PD0 (1 << 0)
/* PD0 */
#define ADS7843E_CMD_PD1 (1 << 1)
/* PD1 */
#define ADS7843E_CMD_DFR (1 << 2)
/* SER/DFR */
#define ADS7843E_CMD_EIGHT_BITS_MOD (1 << 3)
/* Mode */
#define ADS7843E_CMD_START (1 << 7)
/* Start Bit */
#define ADS7843E_CMD_SWITCH_SHIFT 4
/* Address setting */
#define ADS7843E_CMD_PD0 (1 << 0)
/* Bit 0: Power down mode select bit 0 */
#define ADS7843E_CMD_PD1 (1 << 1)
/* Bit 1: Power down mode select bit 1 */
#define ADS7843E_CMD_SER (1 << 2)
/* Bit 2: SER/DFR\: 0:DFR 1:SER */
#define ADS7843E_CMD_MODE8 (1 << 3)
/* Bit 3: Mode 1:8-bits 0:12-bits */
#define ADS7843E_CMD_CHAN_SHIFT (4)
/* Bits 4-6: Channel select bits */
#define ADS7843E_CMD_CHAN_MASK (7 << ADS7843E_CMD_CHAN_SHIFT)
#define ADS7843E_CMD_START (1 << 7)
/* Bit 7: Start Bit */
/* ADS7843E Commands */
#define ADS7843_CMD_YPOSITION \
((1 << ADS7843E_CMD_
SWIT
CH_SHIFT)|ADS7843E_CMD_START
|
ADS7843E_CMD_PD0
|
ADS7843E_CMD_PD1)
((1 << ADS7843E_CMD_CH
AN
_SHIFT)|
ADS7843E_CMD_START
|
ADS7843E_CMD_PD0
|
ADS7843E_CMD_PD1)
#define ADS7843_CMD_XPOSITION \
((5 << ADS7843E_CMD_
SWIT
CH_SHIFT)|ADS7843E_CMD_START
|
ADS7843E_CMD_PD0
|
ADS7843E_CMD_PD1)
((5 << ADS7843E_CMD_CH
AN
_SHIFT)|
ADS7843E_CMD_START
|
ADS7843E_CMD_PD0
|
ADS7843E_CMD_PD1)
#define ADS7843_CMD_ENABPINIRQ \
((1 << ADS7843E_CMD_
SWIT
CH_SHIFT)|ADS7843E_CMD_START)
((1 << ADS7843E_CMD_CH
AN
_SHIFT)|
ADS7843E_CMD_START)
/* Driver support **************************************************************************/
/* This format is used to construct the /dev/input[n] device driver path. It
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment