Skip to content

Commit

Permalink
ccnl: use default transceiver
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Mehlis committed Apr 18, 2014
1 parent f2e28c8 commit c2846a0
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 23 deletions.
7 changes: 1 addition & 6 deletions examples/ccn-lite-client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 1 addition & 6 deletions examples/ccn-lite-relay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/ccn-lite-relay/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions sys/net/ccn_lite/ccn-lite-relay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}
Expand Down
2 changes: 1 addition & 1 deletion sys/net/ccn_lite/ccnl-riot-compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 1 addition & 7 deletions sys/net/include/ccn_lite/ccnl-riot.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c2846a0

Please sign in to comment.