Fixed the stub-rdc driver used by various cc2x30 examples

This commit is contained in:
George Oikonomou 2012-03-23 16:48:09 +00:00
parent ad256e5014
commit 80002e8fd1
3 changed files with 27 additions and 0 deletions

View file

@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
}
/*---------------------------------------------------------------------------*/
static void
send_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *list)
{
if(sent) {
sent(ptr, MAC_TX_OK, 1);
}
}
/*---------------------------------------------------------------------------*/
static void
input(void)
{
}
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
"stub-rdc",
init,
send,
send_list,
input,
on,
off,

View file

@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
}
/*---------------------------------------------------------------------------*/
static void
send_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *list)
{
if(sent) {
sent(ptr, MAC_TX_OK, 1);
}
}
/*---------------------------------------------------------------------------*/
static void
input(void)
{
}
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
"stub-rdc",
init,
send,
send_list,
input,
on,
off,

View file

@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
}
/*---------------------------------------------------------------------------*/
static void
send_list(mac_callback_t sent, void *ptr, struct rdc_buf_list *list)
{
if(sent) {
sent(ptr, MAC_TX_OK, 1);
}
}
/*---------------------------------------------------------------------------*/
static void
input(void)
{
}
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
"stub-rdc",
init,
send,
send_list,
input,
on,
off,