moved initialization of queuebuf to contikimac-main.c
This commit is contained in:
parent
189fd594d3
commit
468a14b528
@ -74,6 +74,10 @@
|
||||
|
||||
/* Packet buffer */
|
||||
#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 "dev/watchdog.h"
|
||||
|
||||
#include "net/queuebuf.h"
|
||||
#include "net/app-layer/coap/coap-engine.h"
|
||||
#include "services/rpl-border-router/rpl-border-router.h"
|
||||
#include "services/orchestra/orchestra.h"
|
||||
@ -89,6 +90,9 @@ main(void)
|
||||
|
||||
platform_init_stage_two();
|
||||
|
||||
#if QUEUEBUF_ENABLED
|
||||
queuebuf_init();
|
||||
#endif /* QUEUEBUF_ENABLED */
|
||||
netstack_init();
|
||||
node_id_init();
|
||||
|
||||
|
@ -2061,11 +2061,6 @@ sicslowpan_init(void)
|
||||
#endif /* SICSLOWPAN_CONF_MAX_ADDR_CONTEXTS > 1 */
|
||||
|
||||
#endif /* SICSLOWPAN_COMPRESSION == SICSLOWPAN_COMPRESSION_IPHC */
|
||||
|
||||
/* We use the queuebuf module if fragmentation is enabled */
|
||||
#if SICSLOWPAN_CONF_FRAG
|
||||
queuebuf_init();
|
||||
#endif
|
||||
}
|
||||
/*--------------------------------------------------------------------*/
|
||||
int
|
||||
|
@ -539,5 +539,4 @@ csma_output_init(void)
|
||||
memb_init(&packet_memb);
|
||||
memb_init(&metadata_memb);
|
||||
memb_init(&neighbor_memb);
|
||||
queuebuf_init();
|
||||
}
|
||||
|
@ -972,8 +972,7 @@ tsch_init(void)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Init the queuebuf and TSCH sub-modules */
|
||||
queuebuf_init();
|
||||
/* Init TSCH sub-modules */
|
||||
tsch_reset();
|
||||
tsch_queue_init();
|
||||
tsch_schedule_init();
|
||||
|
@ -55,6 +55,12 @@
|
||||
|
||||
#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 */
|
||||
#ifdef QUEUEBUF_CONF_NUM
|
||||
#define QUEUEBUF_NUM QUEUEBUF_CONF_NUM
|
||||
|
Loading…
Reference in New Issue
Block a user