1
0
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:
Oleg Hahm 2014-10-30 23:13:11 +01:00
parent 3c0d91720b
commit 1b47b76135
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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