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
1c828eb1
Commit
1c828eb1
authored
12 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Back out part of the LPC17xx touchscreen GPIO interrupt logic; they are incorrect
parent
141fb6a3
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
configs/open1788/src/lpc17_touchscreen.c
+7
-12
7 additions, 12 deletions
configs/open1788/src/lpc17_touchscreen.c
with
7 additions
and
12 deletions
configs/open1788/src/lpc17_touchscreen.c
+
7
−
12
View file @
1c828eb1
...
...
@@ -178,21 +178,19 @@ static void tsc_enable(FAR struct ads7843e_config_s *state, bool enable)
ivdbg
(
"enable:%d
\n
"
,
enable
);
if
(
enable
)
{
/* Configure the PENIRQ GPIO as an interrupting enable and enable the interrupt */
/* Enable the pin interrupt. The pin interrupt is enabled from worker thread
* logic after completion of processing of the touchscreen interrupt.
*/
(
void
)
lpc17_configgpio
(
GPIO_TC_PENIRQ
);
up_enable_irq
(
LPC17_IRQ_PENIRQ
);
}
else
{
/* Disable PENIRQ interrupts and reconfigure the pin as a normal input pin.
* We have to do this because the PENIRQ interrupt will be disabled from
* interrupt handling logic and, in that case, will be automatically re-enabled
* when the interrupt returns.
/* Disable PENIRQ interrupts. NOTE: The PENIRQ interrupt will be disabled from
* interrupt handling logic.
*/
up_disable_irq
(
LPC17_IRQ_PENIRQ
);
(
void
)
lpc17_configgpio
(
GPIO_TC_PEN
);
}
}
...
...
@@ -288,12 +286,9 @@ int arch_tcinitialize(int minor)
if
(
!
initialized
)
{
/* Configure and enable the XPT2046 PENIRQ pin as a normal input. It
* will be reconfigured as an interrupting input when tsc_enable is
* called to enable the PENIRQ interrupt.
*/
/* Configure and enable the XPT2046 PENIRQ pin as an interrupting input. */
(
void
)
lpc17_configgpio
(
GPIO_TC_PEN
);
(
void
)
lpc17_configgpio
(
GPIO_TC_PEN
IRQ
);
/* Configure the XPT2046 BUSY pin as a normal input. */
...
...
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