1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

mc1322x: some fixes in transceiver and ccnl

This commit is contained in:
Oleg Hahm 2014-08-01 02:13:29 +02:00
parent 19377261ac
commit cf536c8f5c
2 changed files with 7 additions and 2 deletions

View File

@ -24,6 +24,8 @@
#include "msg.h"
#include "thread.h"
#include "ieee802154_frame.h"
#include "ccnl.h"
#include "ccnl-core.h"
#include "ccnl-pdu.h"

View File

@ -121,6 +121,9 @@ static void receive_cc2420_packet(ieee802154_packet_t *trans_p);
#ifdef MODULE_NATIVENET
static void receive_nativenet_packet(radio_packet_t *trans_p);
#endif
#ifdef MODULE_MC1322X
void receive_mc1322x_packet(ieee802154_packet_t *trans_p);
#endif
#ifdef MODULE_AT86RF231
void receive_at86rf231_packet(ieee802154_packet_t *trans_p);
#endif
@ -610,7 +613,7 @@ void receive_cc2420_packet(ieee802154_packet_t *trans_p)
#endif
#ifdef MODULE_MC1322X
void receive_mc1322x_packet(radio_packet_t *trans_p)
void receive_mc1322x_packet(ieee802154_packet_t *trans_p)
{
maca_packet_t *maca_pkt;
dINT();
@ -621,7 +624,7 @@ void receive_mc1322x_packet(radio_packet_t *trans_p)
maca_free_packet(maca_pkt);
eINT();
trans_p->data = (uint8_t *) &(data_buffer[transceiver_buffer_pos * MACA_MAX_PAYLOAD_SIZE]);
trans_p->frame.payload = (uint8_t *) &(data_buffer[transceiver_buffer_pos * MACA_MAX_PAYLOAD_SIZE]);
}
#endif