1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-28 23:49:47 +01:00

drivers/cc110x : Add CONFIG_

Add Add CONFIG_ Prefix for CC110X_DEFAULT_CHANNEL
This commit is contained in:
Akshai M 2020-04-17 23:27:01 +05:30
parent 2f75c60527
commit 01a8c64e39
3 changed files with 4 additions and 4 deletions

View File

@ -348,7 +348,7 @@ static int cc110x_init(netdev_t *netdev)
* cc110x_full_calibration
*/
retval = cc110x_apply_config(dev, dev->params.config, dev->params.channels,
CC110X_DEFAULT_CHANNEL);
CONFIG_CC110X_DEFAULT_CHANNEL);
if (retval) {
gpio_irq_disable(dev->params.gdo0);
gpio_irq_disable(dev->params.gdo2);

View File

@ -248,8 +248,8 @@ extern "C" {
/**
* @brief The default channel to set up after initializing the device
*/
#ifndef CC110X_DEFAULT_CHANNEL
#define CC110X_DEFAULT_CHANNEL (0U)
#ifndef CONFIG_CC110X_DEFAULT_CHANNEL
#define CONFIG_CC110X_DEFAULT_CHANNEL (0U)
#endif
/** @} */

View File

@ -2,7 +2,7 @@
ifndef CONFIG_KCONFIG_MODULE_IEEE802154
ifneq (,$(DEFAULT_CHANNEL))
ifneq (,$(filter cc110x,$(USEMODULE))) # radio is cc110x sub-GHz
CFLAGS += -DCC110X_DEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
CFLAGS += -DCONFIG_CC110X_DEFAULT_CHANNEL=$(DEFAULT_CHANNEL)
endif
ifneq (,$(filter at86rf212b,$(USEMODULE))) # radio is IEEE 802.15.4 sub-GHz