Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nuttx-apps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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-apps
Commits
7bf1f353
Commit
7bf1f353
authored
11 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Rename up_buttons() to board_buttons()
parent
ce6ceb9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/buttons/buttons_main.c
+3
-3
3 additions, 3 deletions
examples/buttons/buttons_main.c
with
3 additions
and
3 deletions
examples/buttons/buttons_main.c
+
3
−
3
View file @
7bf1f353
...
...
@@ -312,7 +312,7 @@ static void show_buttons(uint8_t oldset, uint8_t newset)
#ifdef CONFIG_ARCH_IRQBUTTONS
static
void
button_handler
(
int
id
,
int
irq
)
{
uint8_t
newset
=
up
_buttons
();
uint8_t
newset
=
board
_buttons
();
lowsyslog
(
"IRQ:%d Button %d:%s SET:%02x:
\n
"
,
irq
,
id
,
g_buttoninfo
[
BUTTON_INDEX
(
id
)].
name
,
newset
);
...
...
@@ -448,7 +448,7 @@ int buttons_main(int argc, char *argv[])
/* Poll button state */
g_oldset
=
up
_buttons
();
g_oldset
=
board
_buttons
();
#ifdef CONFIG_NSH_BUILTIN_APPS
while
(
g_nbuttons
<
maxbuttons
)
#else
...
...
@@ -457,7 +457,7 @@ int buttons_main(int argc, char *argv[])
{
/* Get the set of pressed and release buttons. */
newset
=
up
_buttons
();
newset
=
board
_buttons
();
/* Any changes from the last sample? */
...
...
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