Merge pull request #733 from kkrentz/init-pr
Fix to queuebuf initialization
This commit is contained in:
commit
c174d7ddcc
@ -74,6 +74,10 @@
|
|||||||
|
|
||||||
/* Packet buffer */
|
/* Packet buffer */
|
||||||
#define PACKETBUF_CONF_SIZE 1280 /**< Required IPv6 MTU size */
|
#define PACKETBUF_CONF_SIZE 1280 /**< Required IPv6 MTU size */
|
||||||
|
|
||||||
|
/* Queuebuf */
|
||||||
|
#define QUEUEBUF_CONF_ENABLED 0
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
#include "sys/stack-check.h"
|
#include "sys/stack-check.h"
|
||||||
#include "dev/watchdog.h"
|
#include "dev/watchdog.h"
|
||||||
|
|
||||||
|
#include "net/queuebuf.h"
|
||||||
#include "net/app-layer/coap/coap-engine.h"
|
#include "net/app-layer/coap/coap-engine.h"
|
||||||
#include "services/rpl-border-router/rpl-border-router.h"
|
#include "services/rpl-border-router/rpl-border-router.h"
|
||||||
#include "services/orchestra/orchestra.h"
|
#include "services/orchestra/orchestra.h"
|
||||||
@ -89,6 +90,9 @@ main(void)
|
|||||||
|
|
||||||
platform_init_stage_two();
|
platform_init_stage_two();
|
||||||
|
|
||||||
|
#if QUEUEBUF_ENABLED
|
||||||
|
queuebuf_init();
|
||||||
|
#endif /* QUEUEBUF_ENABLED */
|
||||||
netstack_init();
|
netstack_init();
|
||||||
node_id_init();
|
node_id_init();
|
||||||
|
|
||||||
|
@ -2061,11 +2061,6 @@ sicslowpan_init(void)
|
|||||||
#endif /* SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS > 1 */
|
#endif /* SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS > 1 */
|
||||||
|
|
||||||
#endif /* SICSLOWPAN_COMPRESSION == SICSLOWPAN_COMPRESSION_IPHC */
|
#endif /* SICSLOWPAN_COMPRESSION == SICSLOWPAN_COMPRESSION_IPHC */
|
||||||
|
|
||||||
/* We use the queuebuf module if fragmentation is enabled */
|
|
||||||
#if SICSLOWPAN_CONF_FRAG
|
|
||||||
queuebuf_init();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
/*--------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------*/
|
||||||
int
|
int
|
||||||
|
@ -539,5 +539,4 @@ csma_output_init(void)
|
|||||||
memb_init(&packet_memb);
|
memb_init(&packet_memb);
|
||||||
memb_init(&metadata_memb);
|
memb_init(&metadata_memb);
|
||||||
memb_init(&neighbor_memb);
|
memb_init(&neighbor_memb);
|
||||||
queuebuf_init();
|
|
||||||
}
|
}
|
||||||
|
@ -972,8 +972,7 @@ tsch_init(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Init the queuebuf and TSCH sub-modules */
|
/* Init TSCH sub-modules */
|
||||||
queuebuf_init();
|
|
||||||
tsch_reset();
|
tsch_reset();
|
||||||
tsch_queue_init();
|
tsch_queue_init();
|
||||||
tsch_schedule_init();
|
tsch_schedule_init();
|
||||||
|
@ -55,6 +55,12 @@
|
|||||||
|
|
||||||
#include "net/packetbuf.h"
|
#include "net/packetbuf.h"
|
||||||
|
|
||||||
|
#ifdef QUEUEBUF_CONF_ENABLED
|
||||||
|
#define QUEUEBUF_ENABLED QUEUEBUF_CONF_ENABLED
|
||||||
|
#else /* QUEUEBUF_CONF_ENABLED */
|
||||||
|
#define QUEUEBUF_ENABLED 1
|
||||||
|
#endif /* QUEUEBUF_CONF_ENABLED */
|
||||||
|
|
||||||
/* QUEUEBUF_NUM is the total number of queuebuf */
|
/* QUEUEBUF_NUM is the total number of queuebuf */
|
||||||
#ifdef QUEUEBUF_CONF_NUM
|
#ifdef QUEUEBUF_CONF_NUM
|
||||||
#define QUEUEBUF_NUM QUEUEBUF_CONF_NUM
|
#define QUEUEBUF_NUM QUEUEBUF_CONF_NUM
|
||||||
|
Loading…
Reference in New Issue
Block a user