Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
cm-projects
RIOT
Commits
df5b89a4
Commit
df5b89a4
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
tests: driver_pir: vtimer -> xtimer
parent
ec01c9de
No related branches found
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/driver_pir/Makefile
+1
-1
1 addition, 1 deletion
tests/driver_pir/Makefile
tests/driver_pir/main.c
+2
-2
2 additions, 2 deletions
tests/driver_pir/main.c
with
3 additions
and
3 deletions
tests/driver_pir/Makefile
+
1
−
1
View file @
df5b89a4
...
...
@@ -12,7 +12,7 @@ ifneq (,$(filter arduino-due,$(BOARD)))
endif
USEMODULE
+=
pir
USEMODULE
+=
v
timer
USEMODULE
+=
x
timer
ifneq
(,$(PIR_GPIO))
CFLAGS
+=
-DPIR_GPIO
=
$(
PIR_GPIO
)
...
...
This diff is collapsed.
Click to expand it.
tests/driver_pir/main.c
+
2
−
2
View file @
df5b89a4
...
...
@@ -25,7 +25,7 @@
#include
<stdio.h>
#include
"thread.h"
#include
"
v
timer.h"
#include
"
x
timer.h"
#include
"pir.h"
char
pir_handler_stack
[
THREAD_STACKSIZE_MAIN
];
...
...
@@ -75,7 +75,7 @@ int main(void)
puts
(
"Printing sensor state every second."
);
while
(
1
)
{
printf
(
"Status: %s
\n
"
,
pir_get_status
(
&
dev
)
==
PIR_STATUS_LO
?
"lo"
:
"hi"
);
v
timer_usleep
(
1000
*
1000
);
x
timer_usleep
(
1000
*
1000
);
}
#else
thread_create
(
...
...
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