config: use FEATURE_PROVIDED instead of HAS_RADIO
This commit is contained in:
parent
3c0d91720b
commit
1b47b76135
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
config_t sysconfig = {
|
config_t sysconfig = {
|
||||||
0, /**< default ID */
|
0, /**< default ID */
|
||||||
#ifdef HAS_RADIO
|
#ifdef FEATURE_TRANSCEIVER
|
||||||
0, /**< default radio address */
|
0, /**< default radio address */
|
||||||
0, /**< default radio channel */
|
0, /**< default radio channel */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
#define CONFIG_H
|
#define CONFIG_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#ifdef HAS_RADIO
|
#ifdef FEATURE_TRANSCEIVER
|
||||||
#include "radio/types.h"
|
#include "radio/types.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ extern char configmem[];
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
/* cppcheck-suppress unusedStructMember : is used in sys/shell/commands/sc_id.c */
|
/* cppcheck-suppress unusedStructMember : is used in sys/shell/commands/sc_id.c */
|
||||||
uint16_t id; /**< unique node identifier */
|
uint16_t id; /**< unique node identifier */
|
||||||
#ifdef HAS_RADIO
|
#ifdef FEATURE_TRANSCEIVER
|
||||||
radio_address_t radio_address; /**< address for radio communication */
|
radio_address_t radio_address; /**< address for radio communication */
|
||||||
uint8_t radio_channel; /**< current frequency */
|
uint8_t radio_channel; /**< current frequency */
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user