mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
makefiles: expose a single DEFAULT_CHANNEL variable
This commit is contained in:
parent
54a1b7a4d0
commit
87ca058417
@ -63,12 +63,18 @@ extern "C" {
|
||||
/* the AT86RF212B has a sub-1GHz radio */
|
||||
#define AT86RF2XX_MIN_CHANNEL (0)
|
||||
#define AT86RF2XX_MAX_CHANNEL (10)
|
||||
#ifdef DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||
#endif
|
||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (5)
|
||||
#endif
|
||||
#else
|
||||
#define AT86RF2XX_MIN_CHANNEL (11U)
|
||||
#define AT86RF2XX_MAX_CHANNEL (26U)
|
||||
#ifdef DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||
#endif
|
||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||
#define AT86RF2XX_DEFAULT_CHANNEL (26U)
|
||||
#endif
|
||||
|
@ -65,6 +65,9 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default channel used after initialization
|
||||
*/
|
||||
#ifdef DEFAULT_CHANNEL
|
||||
#define KW2XRF_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||
#endif
|
||||
#ifndef KW2XRF_DEFAULT_CHANNEL
|
||||
#define KW2XRF_DEFAULT_CHANNEL (26U)
|
||||
#endif
|
||||
|
@ -72,6 +72,9 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default channel used after initialization
|
||||
*/
|
||||
#ifdef DEFAULT_CHANNEL
|
||||
#define XBEE_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||
#endif
|
||||
#ifndef XBEE_DEFAULT_CHANNEL
|
||||
#define XBEE_DEFAULT_CHANNEL (23U)
|
||||
#endif
|
||||
|
@ -70,4 +70,8 @@ ifneq (,$(filter msba2,$(BOARD)))
|
||||
USEMODULE += random
|
||||
endif
|
||||
|
||||
# Set a custom 802.15.4 channel if needed
|
||||
DEFAULT_CHANNEL ?= 26
|
||||
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||
|
||||
include $(RIOTBASE)/Makefile.include
|
||||
|
@ -42,6 +42,10 @@ USEMODULE += ps
|
||||
# include UHCP client
|
||||
USEMODULE += gnrc_uhcpc
|
||||
|
||||
# Set a custom 802.15.4 channel if needed
|
||||
DEFAULT_CHANNEL ?= 26
|
||||
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||
|
||||
# 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:
|
||||
|
@ -36,6 +36,10 @@ USEMODULE += gnrc_icmpv6_echo
|
||||
# Use minimal standard PRNG
|
||||
USEMODULE += prng_minstd
|
||||
|
||||
# Set a custom 802.15.4 channel if needed
|
||||
DEFAULT_CHANNEL ?= 26
|
||||
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||
|
||||
CFLAGS += -DGNRC_PKTBUF_SIZE=512 -DGNRC_IPV6_NETIF_ADDR_NUMOF=4 -DGNRC_IPV6_NC_SIZE=1
|
||||
|
||||
# Change this to 0 show compiler invocation lines by default:
|
||||
|
@ -33,6 +33,10 @@ USEMODULE += ps
|
||||
USEMODULE += netstats_l2
|
||||
USEMODULE += netstats_ipv6
|
||||
|
||||
# Set a custom 802.15.4 channel if needed
|
||||
DEFAULT_CHANNEL ?= 26
|
||||
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||
|
||||
# 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:
|
||||
|
@ -33,6 +33,10 @@ CFLAGS += -DMICROCOAP_DEBUG
|
||||
# include this for printing IP addresses
|
||||
USEMODULE += shell_commands
|
||||
|
||||
# Set a custom 802.15.4 channel if needed
|
||||
DEFAULT_CHANNEL ?= 26
|
||||
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||
|
||||
# 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:
|
||||
|
Loading…
Reference in New Issue
Block a user