Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbee 802.15.4 modem driver for Arduino #2250

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions boards/arduino-due/include/xbee-config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (C) 2014 INRIA
*
* 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.
*/

/**
* @defgroup driver_xbee XBee driver
* @ingroup drivers
* @brief XBee autonomous 802.15.4 modem driver
* @{
*
* @file
* @brief Configuration values for the XBee 802.15.4 modem driver
*
* @author Kévin Roussel <kevin.roussel@inria.fr>
*/

#ifndef __XBEE_CONFIG_H
#define __XBEE_CONFIG_H

#include "periph/uart.h"

/* identifier of the UART used to communicate with the XBee module;
on the Arduino Due, this is UART 0 (the first one, also used for MCU
programming) */
#define XBEE_UART_LINK UART_0

/* identifier of the GPIO pin linked to the SLEEP_RQ pin (pin 9) of the XBee
module (output that allows to put the modem online or offline) */
#define XBEE_SLEEP_RQ_GPIO GPIO_UNDEFINED

/* identifier of the GPIO pin linked to the ON/SLEEP pin (pin 13) of the XBee
module (input that gives the online or sleeping status of the module) */
#define XBEE_ON_STATUS_GPIO GPIO_UNDEFINED


#endif /* __XBEE_CONFIG_H */
35 changes: 35 additions & 0 deletions drivers/include/xbee.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
* Copyright (C) 2014 INRIA
*
* 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.
*/

/**
* @defgroup driver_xbee XBee driver
* @ingroup drivers
* @brief High-level driver for the XBee 802.15.4 modem
* @{
*
* @file
* @brief High-level driver for the XBee 802.15.4 modem
*
* @author Kévin Roussel <kevin.roussel@inria.fr>
*/

#ifndef __XBEE_H
#define __XBEE_H

#include "radio_driver.h"

#define XBEE_MAX_PKT_DATA_LENGTH 100


/**
* XBee low-level radio driver definition.
*/
extern const ieee802154_radio_driver_t xbee_radio_driver;

#endif /* __XBEE_H */
/** @} */
Loading