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
3e6b7a33
Commit
3e6b7a33
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix some naming and comments associated with the Open1788 touchscreen
parent
88892d3b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configs/open1788/README.txt
+5
-4
5 additions, 4 deletions
configs/open1788/README.txt
drivers/input/ads7843e.c
+10
-3
10 additions, 3 deletions
drivers/input/ads7843e.c
drivers/input/ads7843e.h
+1
-1
1 addition, 1 deletion
drivers/input/ads7843e.h
with
16 additions
and
8 deletions
configs/open1788/README.txt
+
5
−
4
View file @
3e6b7a33
...
...
@@ -179,7 +179,7 @@ Serial Console
CONFIG_UART1_2STOP=0
In this configuration using UART1, it is necessary to disable LED support
on the board. That is because UART1 RXD is set for pin p0.16, but so i
t
on the board. That is because UART1 RXD is set for pin p0.16, but so i
s
LED2. If you do not disable LED support then no incoming serial data will
be recevied.
...
...
@@ -187,11 +187,12 @@ Serial Console
CONFIG_ARCH_LEDS=n : Disable LED support
You should also remove the LED2 jumper so that the RXD input does not
attempt to drive LED2 as well (
this
this does not seem to interfere with
attempt to drive LED2 as well (
However,
this does not seem to interfere with
data receipt).
NOTE: If you intend to use LEDs, then you might want to redesign some of
the LED logic in the src/ subdirectory so that it does not use LED2.
NOTE: If you intend to use LEDs with UART1, then you might want to
redesign some ofthe LED logic in the src/ subdirectory so that it does not
attempt to use LED2.
Using OpenOCD with the Olimex ARM-USB-OCD
=========================================
...
...
This diff is collapsed.
Click to expand it.
drivers/input/ads7843e.c
+
10
−
3
View file @
3e6b7a33
...
...
@@ -632,7 +632,9 @@ static void ads7843e_worker(FAR void *arg)
}
else
{
/* Handle pen down events. First, sample positional values. */
/* Handle pen down events. First, sample positional values. NOTE:
* that these commands have the side-effect of disabling the PENIRQ.
*/
#ifdef CONFIG_ADS7843E_SWAPXY
x
=
ads7843e_sendcmd
(
priv
,
ADS7843_CMD_YPOSITION
);
...
...
@@ -703,7 +705,12 @@ static void ads7843e_worker(FAR void *arg)
ignored:
(
void
)
ads7843e_sendcmd
(
priv
,
ADS7843_CMD_ENABPINIRQ
);
/* Re-enable the PENIRQ interrupt at the ADS7843E */
(
void
)
ads7843e_sendcmd
(
priv
,
ADS7843_CMD_ENABPENIRQ
);
/* Re-enable the PENIRQ interrupt at the MCU's interrupt controller */
config
->
enable
(
config
,
true
);
/* Release our lock on the state structure and unlock the SPI bus */
...
...
@@ -1228,7 +1235,7 @@ int ads7843e_register(FAR struct spi_dev_s *spi,
/* Enable the PEN IRQ */
ads7843e_sendcmd
(
priv
,
ADS7843_CMD_ENABP
I
NIRQ
);
ads7843e_sendcmd
(
priv
,
ADS7843_CMD_ENABP
E
NIRQ
);
/* Unlock the bus */
...
...
This diff is collapsed.
Click to expand it.
drivers/input/ads7843e.h
+
1
−
1
View file @
3e6b7a33
...
...
@@ -87,7 +87,7 @@
((1 << ADS7843E_CMD_CHAN_SHIFT)| ADS7843E_CMD_START | ADS7843E_CMD_PD0 | ADS7843E_CMD_PD1)
#define ADS7843_CMD_XPOSITION \
((5 << ADS7843E_CMD_CHAN_SHIFT)| ADS7843E_CMD_START | ADS7843E_CMD_PD0 | ADS7843E_CMD_PD1)
#define ADS7843_CMD_ENABP
I
NIRQ \
#define ADS7843_CMD_ENABP
E
NIRQ \
((1 << ADS7843E_CMD_CHAN_SHIFT)| ADS7843E_CMD_START)
/* Driver support **************************************************************************/
...
...
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