mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +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 */
|
/* the AT86RF212B has a sub-1GHz radio */
|
||||||
#define AT86RF2XX_MIN_CHANNEL (0)
|
#define AT86RF2XX_MIN_CHANNEL (0)
|
||||||
#define AT86RF2XX_MAX_CHANNEL (10)
|
#define AT86RF2XX_MAX_CHANNEL (10)
|
||||||
|
#ifdef DEFAULT_CHANNEL
|
||||||
|
#define AT86RF2XX_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||||
|
#endif
|
||||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||||
#define AT86RF2XX_DEFAULT_CHANNEL (5)
|
#define AT86RF2XX_DEFAULT_CHANNEL (5)
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define AT86RF2XX_MIN_CHANNEL (11U)
|
#define AT86RF2XX_MIN_CHANNEL (11U)
|
||||||
#define AT86RF2XX_MAX_CHANNEL (26U)
|
#define AT86RF2XX_MAX_CHANNEL (26U)
|
||||||
|
#ifdef DEFAULT_CHANNEL
|
||||||
|
#define AT86RF2XX_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||||
|
#endif
|
||||||
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
#ifndef AT86RF2XX_DEFAULT_CHANNEL
|
||||||
#define AT86RF2XX_DEFAULT_CHANNEL (26U)
|
#define AT86RF2XX_DEFAULT_CHANNEL (26U)
|
||||||
#endif
|
#endif
|
||||||
|
@ -65,6 +65,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Default channel used after initialization
|
* @brief Default channel used after initialization
|
||||||
*/
|
*/
|
||||||
|
#ifdef DEFAULT_CHANNEL
|
||||||
|
#define KW2XRF_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||||
|
#endif
|
||||||
#ifndef KW2XRF_DEFAULT_CHANNEL
|
#ifndef KW2XRF_DEFAULT_CHANNEL
|
||||||
#define KW2XRF_DEFAULT_CHANNEL (26U)
|
#define KW2XRF_DEFAULT_CHANNEL (26U)
|
||||||
#endif
|
#endif
|
||||||
|
@ -72,6 +72,9 @@ extern "C" {
|
|||||||
/**
|
/**
|
||||||
* @brief Default channel used after initialization
|
* @brief Default channel used after initialization
|
||||||
*/
|
*/
|
||||||
|
#ifdef DEFAULT_CHANNEL
|
||||||
|
#define XBEE_DEFAULT_CHANNEL (DEFAULT_CHANNEL)
|
||||||
|
#endif
|
||||||
#ifndef XBEE_DEFAULT_CHANNEL
|
#ifndef XBEE_DEFAULT_CHANNEL
|
||||||
#define XBEE_DEFAULT_CHANNEL (23U)
|
#define XBEE_DEFAULT_CHANNEL (23U)
|
||||||
#endif
|
#endif
|
||||||
|
@ -70,4 +70,8 @@ ifneq (,$(filter msba2,$(BOARD)))
|
|||||||
USEMODULE += random
|
USEMODULE += random
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Set a custom 802.15.4 channel if needed
|
||||||
|
DEFAULT_CHANNEL ?= 26
|
||||||
|
CFLAGS += -DDEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
|
||||||
|
|
||||||
include $(RIOTBASE)/Makefile.include
|
include $(RIOTBASE)/Makefile.include
|
||||||
|
@ -42,6 +42,10 @@ USEMODULE += ps
|
|||||||
# include UHCP client
|
# include UHCP client
|
||||||
USEMODULE += gnrc_uhcpc
|
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
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
|
@ -36,6 +36,10 @@ USEMODULE += gnrc_icmpv6_echo
|
|||||||
# Use minimal standard PRNG
|
# Use minimal standard PRNG
|
||||||
USEMODULE += prng_minstd
|
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
|
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:
|
# Change this to 0 show compiler invocation lines by default:
|
||||||
|
@ -33,6 +33,10 @@ USEMODULE += ps
|
|||||||
USEMODULE += netstats_l2
|
USEMODULE += netstats_l2
|
||||||
USEMODULE += netstats_ipv6
|
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
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
|
@ -33,6 +33,10 @@ CFLAGS += -DMICROCOAP_DEBUG
|
|||||||
# include this for printing IP addresses
|
# include this for printing IP addresses
|
||||||
USEMODULE += shell_commands
|
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
|
# Comment this out to disable code in RIOT that does safety checking
|
||||||
# which is not needed in a production environment but helps in the
|
# which is not needed in a production environment but helps in the
|
||||||
# development process:
|
# development process:
|
||||||
|
Loading…
Reference in New Issue
Block a user