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