xbee: fix naming inconsistency

This commit is contained in:
Oleg Hahm 2016-03-28 19:59:37 +02:00
parent 8f47dcbbf8
commit 3ba99aabe4
3 changed files with 5 additions and 5 deletions

View File

@ -154,7 +154,7 @@ extern const gnrc_netdev_driver_t xbee_driver;
* @param[in] baudrate baudrate to use * @param[in] baudrate baudrate to use
* @param[in] sleep_pin GPIO pin that is connected to the SLEEP pin, set to * @param[in] sleep_pin GPIO pin that is connected to the SLEEP pin, set to
* GPIO_UNDEF if not used * GPIO_UNDEF if not used
* @param[in] status_pin GPIO pin that is connected to the STATUS pin, set to * @param[in] reset_pin GPIO pin that is connected to the STATUS pin, set to
* GPIO_UNDEF if not used * GPIO_UNDEF if not used
* *
* @return 0 on success * @return 0 on success
@ -162,7 +162,7 @@ extern const gnrc_netdev_driver_t xbee_driver;
* @return -ENXIO on invalid UART or GPIO pins * @return -ENXIO on invalid UART or GPIO pins
*/ */
int xbee_init(xbee_t *dev, uart_t uart, uint32_t baudrate, int xbee_init(xbee_t *dev, uart_t uart, uint32_t baudrate,
gpio_t sleep_pin, gpio_t status_pin); gpio_t sleep_pin, gpio_t reset_pin);
/** /**
* @brief auto_init struct holding Xbee device initalization params * @brief auto_init struct holding Xbee device initalization params
@ -172,7 +172,7 @@ typedef struct xbee_params {
uint32_t baudrate; /**< baudrate to use */ uint32_t baudrate; /**< baudrate to use */
gpio_t sleep_pin; /**< GPIO pin that is connected to the SLEEP pin gpio_t sleep_pin; /**< GPIO pin that is connected to the SLEEP pin
set to GPIO_UNDEF if not used */ set to GPIO_UNDEF if not used */
gpio_t status_pin; /**< GPIO pin that is connected to the STATUS pin gpio_t reset_pin; /**< GPIO pin that is connected to the STATUS pin
set to GPIO_UNDEF if not used */ set to GPIO_UNDEF if not used */
} xbee_params_t; } xbee_params_t;

View File

@ -54,7 +54,7 @@ void auto_init_xbee(void)
p->uart, p->uart,
p->baudrate, p->baudrate,
p->sleep_pin, p->sleep_pin,
p->status_pin); p->reset_pin);
if (res < 0) { if (res < 0) {
DEBUG("Error initializing XBee radio device!"); DEBUG("Error initializing XBee radio device!");

View File

@ -27,7 +27,7 @@ static xbee_params_t xbee_params[] = {
{ .uart = XBEE_UART, { .uart = XBEE_UART,
.baudrate = 9600U, .baudrate = 9600U,
.sleep_pin = GPIO_UNDEF, .sleep_pin = GPIO_UNDEF,
.status_pin = GPIO_UNDEF .reset_pin = GPIO_UNDEF
}, },
}; };