1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

changed some buffer sizes and other minimal stuff

This commit is contained in:
Stephan Arndt 2013-03-24 15:57:52 +01:00
parent a7c0e325a7
commit 2ae2d85b10
3 changed files with 9 additions and 9 deletions

View File

@ -40,7 +40,7 @@ uint8_t etx_rec_buf[ETX_BUF_SIZE] = { 0 };
static uint8_t rounds = 0;
//Message queue for radio
msg_t msg_que[ETX_RCV_BUFFER_SIZE] = { 0 };
msg_t msg_que[ETX_RCV_QUEUE_SIZE] = { 0 };
/*
* This could (and should) be done differently, once the RPL implementation
@ -232,7 +232,7 @@ uint8_t etx_add_candidate(ipv6_addr_t * address, uint8_t * pkt_rcvd) {
continue;
} else {
//We still have a free place add the new candidate
candidate->addr = address;
candidate->addr = * address;
candidate->cur_etx = 0;
candidate->packets_rx = *pkt_rcvd;
candidate->used = 1;
@ -279,7 +279,7 @@ void etx_handle_beacon(ipv6_addr_t * candidate_address) {
//Candidate was not found in my list, maybe I should add it
uint8_t addresult = 0;
addresult = etx_add_candidate(candidate_address,
probe->data[i * ETX_TUPLE_SIZE + ETX_PKT_REC_OFFSET]);
&(probe->data[i * ETX_TUPLE_SIZE + ETX_PKT_REC_OFFSET]));
if(addresult == 1){
puts("[WARNING] Candidate could not get added");
@ -296,7 +296,7 @@ void etx_radio(void) {
ieee802154_frame_t frame;
msg_init_queue(msg_que, ETX_RCV_BUFFER_SIZE);
msg_init_queue(msg_que, ETX_RCV_QUEUE_SIZE);
ipv6_addr_t ll_address;
ipv6_addr_t candidate_addr;

View File

@ -11,16 +11,16 @@
#include "sys/net/sixlowpan/sixlowip.h"
#define ETX_BEACON_STACKSIZE 4500 //TODO debug stacksize, set for production
#define ETX_RADIO_STACKSIZE 4500 //TODO debug stacksize, set for production
#define ETX_UPDT_STACKSIZE 4500 //TODO debug stacksize, set for production
#define ETX_BEACON_STACKSIZE 2000 //TODO debug stacksize, set for production
#define ETX_RADIO_STACKSIZE 2000 //TODO debug stacksize, set for production
#define ETX_UPDT_STACKSIZE 800 //TODO debug stacksize, set for production
//[option|length|ipaddr.|packetcount] with up to 15 ipaddr|packetcount pairs
// 1 Byte 1 Byte 1 Byte 1 Byte
#define ETX_BUF_SIZE (32)
#define ETX_RCV_BUFFER_SIZE (128)
#define ETX_RCV_QUEUE_SIZE (128)
//Constants for packets

View File

@ -95,7 +95,7 @@
* Default 40, should be enough to get all messages for neighbors.
* In my tests, the maximum count of neighbors was around 30-something
*/
#define RPL_MAX_CANDIDATE_NEIGHBORS 40
#define RPL_MAX_CANDIDATE_NEIGHBORS 15//TODO change
#define RPL_MAX_PARENTS 5
#define RPL_MAX_ROUTING_ENTRIES 128
#define RPL_ROOT_RANK 1