Skip to content
Snippets Groups Projects
Commit 42390758 authored by Oleg Hahm's avatar Oleg Hahm Committed by GitHub
Browse files

Merge pull request #6406 from kYc0o/xbee_fixes

Xbee fixes
parents 5f26171e 51e0aaed
No related branches found
No related tags found
No related merge requests found
...@@ -41,11 +41,11 @@ ...@@ -41,11 +41,11 @@
/** /**
* @brief Delay when entering command mode, must be > 1s * @brief Delay when entering command mode, must be > 1s
*/ */
#define ENTER_CMD_MODE_DELAY (1100U * 1000U) #define ENTER_CMD_MODE_DELAY (1100UL * US_PER_MS)
/** /**
* @brief Delay when resetting the device, 10ms * @brief Delay when resetting the device, 10ms
*/ */
#define RESET_DELAY (10U * 1000U) #define RESET_DELAY (10UL * US_PER_MS)
/** /**
* @brief Timeout for receiving AT command response * @brief Timeout for receiving AT command response
......
...@@ -13,15 +13,15 @@ BOARD_INSUFFICIENT_MEMORY := chronos msb-430 msb-430h ...@@ -13,15 +13,15 @@ BOARD_INSUFFICIENT_MEMORY := chronos msb-430 msb-430h
#USEMODULE += xbee #USEMODULE += xbee
## set default UART to use in case none was defined ## set default UART to use in case none was defined
#XBEE_UART ?= "UART_NUMOF-1" #XBEE_UART ?= "1"
## export UART to params file ## export UART to params file
#CFLAGS += -DXBEE_UART=$(XBEE_UART) #CFLAGS += -DXBEE_UART=$(XBEE_UART)
## add current directory to the include path. Putting it in CFLAGS will make # Comment this out to disable code in RIOT that does safety checking
## it go to the beginning, before the standard includes. # which is not needed in a production environment but helps in the
## That way xbee_params.h get's included and auto configuration can pick it up. # development process:
#CFLAGS += -I$(CURDIR) CFLAGS += -DDEVELHELP
# Include packages that pull up and auto-init the link layer. # Include packages that pull up and auto-init the link layer.
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present # NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
......
...@@ -16,11 +16,19 @@ USEMODULE += shell ...@@ -16,11 +16,19 @@ USEMODULE += shell
USEMODULE += shell_commands USEMODULE += shell_commands
# set default UART to use in case none was defined # set default UART to use in case none was defined
XBEE_UART ?= "UART_NUMOF-1" XBEE_UART ?= "1"
# export UART to params file # export UART to params file
CFLAGS += -DXBEE_UART=$(XBEE_UART) CFLAGS += -DXBEE_UART=$(XBEE_UART)
# No need of big buffer for this test
CFLAGS += -DGNRC_PKTBUF_SIZE=512
# Comment this out to disable code in RIOT that does safety checking
# which is not needed in a production environment but helps in the
# development process:
CFLAGS += -DDEVELHELP
# add current directory to the include path. Putting it in CFLAGS will make # add current directory to the include path. Putting it in CFLAGS will make
# it go to the beginning, before the standard includes. # it go to the beginning, before the standard includes.
# That way xbee_params.h get's included and auto configuration can pick it up. # That way xbee_params.h get's included and auto configuration can pick it up.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment