From 3ba99aabe4c67ecbe42a8ac2980c503a53bc7935 Mon Sep 17 00:00:00 2001 From: Oleg Hahm <oleg@hobbykeller.org> Date: Mon, 28 Mar 2016 19:59:37 +0200 Subject: [PATCH] xbee: fix naming inconsistency --- drivers/include/xbee.h | 6 +++--- sys/auto_init/netif/auto_init_xbee.c | 2 +- tests/driver_xbee/xbee_params.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/include/xbee.h b/drivers/include/xbee.h index eea9d87e7c..293a900bb3 100644 --- a/drivers/include/xbee.h +++ b/drivers/include/xbee.h @@ -154,7 +154,7 @@ extern const gnrc_netdev_driver_t xbee_driver; * @param[in] baudrate baudrate to use * @param[in] sleep_pin GPIO pin that is connected to the SLEEP pin, set to * 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 * * @return 0 on success @@ -162,7 +162,7 @@ extern const gnrc_netdev_driver_t xbee_driver; * @return -ENXIO on invalid UART or GPIO pins */ 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 @@ -172,7 +172,7 @@ typedef struct xbee_params { uint32_t baudrate; /**< baudrate to use */ gpio_t sleep_pin; /**< GPIO pin that is connected to the SLEEP pin 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 */ } xbee_params_t; diff --git a/sys/auto_init/netif/auto_init_xbee.c b/sys/auto_init/netif/auto_init_xbee.c index 764c10f472..b7a106ac3b 100644 --- a/sys/auto_init/netif/auto_init_xbee.c +++ b/sys/auto_init/netif/auto_init_xbee.c @@ -54,7 +54,7 @@ void auto_init_xbee(void) p->uart, p->baudrate, p->sleep_pin, - p->status_pin); + p->reset_pin); if (res < 0) { DEBUG("Error initializing XBee radio device!"); diff --git a/tests/driver_xbee/xbee_params.h b/tests/driver_xbee/xbee_params.h index 11eb1f0fa4..6191583005 100644 --- a/tests/driver_xbee/xbee_params.h +++ b/tests/driver_xbee/xbee_params.h @@ -27,7 +27,7 @@ static xbee_params_t xbee_params[] = { { .uart = XBEE_UART, .baudrate = 9600U, .sleep_pin = GPIO_UNDEF, - .status_pin = GPIO_UNDEF + .reset_pin = GPIO_UNDEF }, }; -- GitLab