Added bursts support in CSMA/ContikiMAC, and CFS-swapping in
queuebuf. Exemplified in examples/udp-stream.
This commit is contained in:
parent
5b1d9617c4
commit
dd8576830e
19 changed files with 1197 additions and 285 deletions
|
@ -699,6 +699,15 @@ qsend_packet(mac_callback_t sent, void *ptr)
|
|||
mac_call_sent_callback(sent, ptr, ret, 1);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
qsend_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *buf_list)
|
||||
{
|
||||
if(buf_list != NULL) {
|
||||
queuebuf_to_packetbuf(buf_list->buf);
|
||||
qsend_packet(sent, ptr);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
input_packet(void)
|
||||
{
|
||||
|
@ -914,6 +923,7 @@ const struct rdc_driver cxmac_driver =
|
|||
"CX-MAC",
|
||||
cxmac_init,
|
||||
qsend_packet,
|
||||
qsend_list,
|
||||
input_packet,
|
||||
turn_on,
|
||||
turn_off,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue