xbee: fix naming inconsistency
This commit is contained in:
parent
8f47dcbbf8
commit
3ba99aabe4
@ -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;
|
||||
|
||||
|
||||
@ -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!");
|
||||
|
||||
@ -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
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user