-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11a0422
commit 83d206e
Showing
6 changed files
with
388 additions
and
475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de> | ||
* 2016 Freie Universität Berlin | ||
* | ||
* 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 drivers_xbee | ||
* @{ | ||
* | ||
* @file | ||
* @brief Default configuration for XBee devices | ||
* | ||
* @author Kaspar Schleiser <kaspar@schleiser.de> | ||
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> | ||
*/ | ||
|
||
#ifndef XBEE_PARAMS_H | ||
#define XBEE_PARAMS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Set default configuration parameters for the XBee driver | ||
* @{ | ||
*/ | ||
#ifndef XBEE_PARAM_UART | ||
#define XBEE_PARAM_UART (UART_DEV(1)) | ||
#endif | ||
#ifndef XBEE_PARAM_BR | ||
#define XBEE_PARAM_BR (9600U) | ||
#endif | ||
#ifndef XBEE_PARAM_PIN_SLEEP | ||
#define XBEE_PARAM_PIN_SLEEP (GPIO_UNDEF) | ||
#endif | ||
#ifndef XBEE_PARAM_PIN_RESET | ||
#define XBEE_PARAM_PIN_RESET (GPIO_UNDEF) | ||
#endif | ||
|
||
#ifndef XBEE_PARAMS | ||
#define XBEE_PARAMS { .uart = XBEE_PARAM_UART, \ | ||
.br = XBEE_PARAM_BR, \ | ||
.pin_sleep = XBEE_PARAM_PIN_SLEEP, \ | ||
.pin_reset = XBEE_PARAM_PIN_RESET } | ||
#endif | ||
/**@}*/ | ||
|
||
/** | ||
* @brief XBee configuration | ||
*/ | ||
static const xbee_params_t xbee_params[] = | ||
{ | ||
XBEE_PARAMS | ||
}; | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* XBEE_PARAMS_H */ | ||
/** @} */ |
Oops, something went wrong.