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
c9118e5f
Commit
c9118e5f
authored
8 years ago
by
kYc0o
Browse files
Options
Downloads
Patches
Plain Diff
examples/gnrc_minimal: Add support for XBee into gnrc_minimal
parent
42d34e69
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/gnrc_minimal/Makefile
+15
-0
15 additions, 0 deletions
examples/gnrc_minimal/Makefile
examples/gnrc_minimal/README.md
+4
-0
4 additions, 0 deletions
examples/gnrc_minimal/README.md
examples/gnrc_minimal/xbee_params.h
+38
-0
38 additions, 0 deletions
examples/gnrc_minimal/xbee_params.h
with
57 additions
and
0 deletions
examples/gnrc_minimal/Makefile
+
15
−
0
View file @
c9118e5f
...
@@ -9,6 +9,21 @@ RIOTBASE ?= $(CURDIR)/../..
...
@@ -9,6 +9,21 @@ RIOTBASE ?= $(CURDIR)/../..
BOARD_INSUFFICIENT_MEMORY
:=
chronos msb-430 msb-430h
BOARD_INSUFFICIENT_MEMORY
:=
chronos msb-430 msb-430h
## Uncomment to support the XBee module and nomac
#USEMODULE += xbee
#USEMODULE += gnrc_nomac
## set default UART to use in case none was defined
#XBEE_UART ?= "UART_NUMOF-1"
## export UART to params file
#CFLAGS += -DXBEE_UART=$(XBEE_UART)
## add current directory to the include path. Putting it in CFLAGS will make
## it go to the beginning, before the standard includes.
## That way xbee_params.h get's included and auto configuration can pick it up.
#CFLAGS += -I$(CURDIR)
# Include packages that pull up and auto-init the link layer.
# Include packages that pull up and auto-init the link layer.
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
USEMODULE
+=
gnrc_netdev_default
USEMODULE
+=
gnrc_netdev_default
...
...
This diff is collapsed.
Click to expand it.
examples/gnrc_minimal/README.md
+
4
−
0
View file @
c9118e5f
...
@@ -29,3 +29,7 @@ is achieved by:
...
@@ -29,3 +29,7 @@ is achieved by:
*
Reducing the maximum neighbor cache size from 8 to 1.
*
Reducing the maximum neighbor cache size from 8 to 1.
Please take a look at the Makefile to see how the configuration is done.
Please take a look at the Makefile to see how the configuration is done.
## Support for XBee
Please uncomment the lines in the Makefile in order to support the XBee into
this example.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
examples/gnrc_minimal/xbee_params.h
0 → 100644
+
38
−
0
View file @
c9118e5f
/*
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup tests
* @{
*
* @file
* @brief xbee driver parameters example, used by auto_init_gnrc_netif
*
* @author Kaspar Schleiser <kaspar@schleiser.de>
*/
#ifndef XBEE_PARAMS_H
#define XBEE_PARAMS_H
#ifdef __cplusplus
extern
"C"
{
#endif
static
xbee_params_t
xbee_params
[]
=
{
{
.
uart
=
XBEE_UART
,
.
baudrate
=
9600U
,
.
sleep_pin
=
GPIO_UNDEF
,
.
reset_pin
=
GPIO_UNDEF
},
};
#ifdef __cplusplus
}
#endif
#endif
/* XBEE_PARAMS_H */
/** @} */
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