mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 17:01:19 +01:00
Merge pull request #13224 from fjmolinas/pr_xbee_cts_reset
drivers/xbee: disable CTS/RTS pin unless periph_uart_hw_fc is used
This commit is contained in:
commit
e7a1b40cde
@ -599,6 +599,14 @@ int xbee_init(netdev_t *dev)
|
||||
_at_cmd(xbee, "ATMM2\r");
|
||||
/* put XBee module in "API mode without escaped characters" */
|
||||
_at_cmd(xbee, "ATAP1\r");
|
||||
/* disable xbee CTS and RTS, unless hardware flow control is used */
|
||||
if(!IS_USED(MODULE_PERIPH_UART_HW_FC)) {
|
||||
DEBUG("[xbee] init: WARNING if using an arduino BOARD + arduino xbee " \
|
||||
"shield with ICSP connector, hardware flow control can't be " \
|
||||
"used since CTS pin is connected to ICSP RESET pin\n");
|
||||
_at_cmd(xbee, "ATD6 0\r");
|
||||
_at_cmd(xbee, "ATD7 0\r");
|
||||
}
|
||||
/* apply AT commands */
|
||||
_at_cmd(xbee, "ATAC\r");
|
||||
/* exit command mode */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user