1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #1001 from mehlis/ccnl-defaulttransceiver

ccnl: use default transceiver
This commit is contained in:
Christian Mehlis 2014-04-18 15:12:09 +02:00
commit 1bc74f4fef
6 changed files with 7 additions and 23 deletions

View File

@ -36,12 +36,7 @@ USEMODULE += posix
USEMODULE += ps
USEMODULE += random
USEMODULE += transceiver
ifeq ($(BOARD),msba2)
USEMODULE += cc110x_ng
else ifeq ($(BOARD),native)
USEMODULE += nativenet
endif
USEMODULE += defaulttransceiver
USEMODULE += rtc
USEMODULE += crypto_sha256
USEMODULE += ccn_lite

View File

@ -33,12 +33,7 @@ USEMODULE += config
USEMODULE += posix
USEMODULE += transceiver
ifeq ($(BOARD),msba2)
USEMODULE += cc110x_ng
else ifeq ($(BOARD),native)
USEMODULE += nativenet
endif
USEMODULE += defaulttransceiver
USEMODULE += rtc
USEMODULE += crypto_sha256
USEMODULE += ccn_lite

View File

@ -44,7 +44,7 @@ void set_address_handler(uint16_t a)
msg_t mesg;
transceiver_command_t tcmd;
tcmd.transceivers = transceiver_ids;
tcmd.transceivers = TRANSCEIVER;
tcmd.data = &a;
mesg.content.ptr = (char *) &tcmd;

View File

@ -105,11 +105,11 @@ int ccnl_open_riotmsgdev(void)
int ccnl_open_riottransdev(void)
{
transceiver_init(transceiver_ids);
transceiver_init(TRANSCEIVER);
transceiver_start();
/** register for transceiver events */
transceiver_register(transceiver_ids, thread_getpid());
transceiver_register(TRANSCEIVER, thread_getpid());
return RIOT_TRANS_DEV; /* sock id */
}

View File

@ -46,7 +46,7 @@ int riot_send_transceiver(uint8_t *buf, uint16_t size, uint16_t to)
p.dst = (to == RIOT_BROADCAST) ? 0 : to;
p.data = buf;
tcmd.transceivers = transceiver_ids;
tcmd.transceivers = TRANSCEIVER;
tcmd.data = &p;
mesg.type = SND_PKT;

View File

@ -38,13 +38,7 @@
#include "transceiver.h"
#ifdef MODULE_CC110X_NG
# include "cc110x_ng.h"
# define transceiver_ids (TRANSCEIVER_CC1100 | TRANSCEIVER_NONE)
#else
# include "nativenet.h"
# define transceiver_ids (TRANSCEIVER_NATIVE | TRANSCEIVER_NONE)
#endif
#define TRANSCEIVER TRANSCEIVER_DEFAULT
#define CCNL_RIOT_EVENT_NUMBER_OFFSET (1 << 8)
typedef enum ccnl_riot_event {