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
c9aa2807
Commit
c9aa2807
authored
9 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
drivers: xbee: switch to xtimer
parent
94c55127
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.dep
+1
-0
1 addition, 0 deletions
Makefile.dep
drivers/xbee/xbee.c
+4
-4
4 additions, 4 deletions
drivers/xbee/xbee.c
with
5 additions
and
4 deletions
Makefile.dep
+
1
−
0
View file @
c9aa2807
...
@@ -22,6 +22,7 @@ endif
...
@@ -22,6 +22,7 @@ endif
ifneq
(,$(filter xbee,$(USEMODULE)))
ifneq
(,$(filter xbee,$(USEMODULE)))
USEMODULE
+=
ieee802154
USEMODULE
+=
ieee802154
USEMODULE
+=
xtimer
endif
endif
ifneq
(,$(filter gnrc_zep,$(USEMODULE)))
ifneq
(,$(filter gnrc_zep,$(USEMODULE)))
...
...
This diff is collapsed.
Click to expand it.
drivers/xbee/xbee.c
+
4
−
4
View file @
c9aa2807
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include
<string.h>
#include
<string.h>
#include
"xbee.h"
#include
"xbee.h"
#include
"
hw
timer.h"
#include
"
x
timer.h"
#include
"msg.h"
#include
"msg.h"
#include
"net/eui64.h"
#include
"net/eui64.h"
#include
"net/ieee802154.h"
#include
"net/ieee802154.h"
...
@@ -455,13 +455,13 @@ int xbee_init(xbee_t *dev, uart_t uart, uint32_t baudrate,
...
@@ -455,13 +455,13 @@ int xbee_init(xbee_t *dev, uart_t uart, uint32_t baudrate,
/* if reset pin is connected, do a hardware reset */
/* if reset pin is connected, do a hardware reset */
if
(
reset_pin
!=
GPIO_UNDEF
)
{
if
(
reset_pin
!=
GPIO_UNDEF
)
{
gpio_clear
(
reset_pin
);
gpio_clear
(
reset_pin
);
hw
timer_
wait
(
HWTIMER_TICKS
(
RESET_DELAY
)
)
;
x
timer_
usleep
(
RESET_DELAY
);
gpio_set
(
reset_pin
);
gpio_set
(
reset_pin
);
}
}
/* put the XBee device into command mode */
/* put the XBee device into command mode */
hw
timer_
wait
(
HWTIMER_TICKS
(
ENTER_CMD_MODE_DELAY
)
)
;
x
timer_
usleep
(
ENTER_CMD_MODE_DELAY
);
_at_cmd
(
dev
,
"+++"
);
_at_cmd
(
dev
,
"+++"
);
hw
timer_
wait
(
HWTIMER_TICKS
(
ENTER_CMD_MODE_DELAY
)
)
;
x
timer_
usleep
(
ENTER_CMD_MODE_DELAY
);
/* disable non IEEE802.15.4 extensions */
/* disable non IEEE802.15.4 extensions */
_at_cmd
(
dev
,
"ATMM2
\r
"
);
_at_cmd
(
dev
,
"ATMM2
\r
"
);
/* put XBee module in "API mode without escaped characters" */
/* put XBee module in "API mode without escaped characters" */
...
...
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