Fixed the stub-rdc driver used by various cc2x30 examples
This commit is contained in:
parent
ad256e5014
commit
80002e8fd1
3 changed files with 27 additions and 0 deletions
|
@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
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)
|
input(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
|
||||||
"stub-rdc",
|
"stub-rdc",
|
||||||
init,
|
init,
|
||||||
send,
|
send,
|
||||||
|
send_list,
|
||||||
input,
|
input,
|
||||||
on,
|
on,
|
||||||
off,
|
off,
|
||||||
|
|
|
@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
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)
|
input(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
|
||||||
"stub-rdc",
|
"stub-rdc",
|
||||||
init,
|
init,
|
||||||
send,
|
send,
|
||||||
|
send_list,
|
||||||
input,
|
input,
|
||||||
on,
|
on,
|
||||||
off,
|
off,
|
||||||
|
|
|
@ -52,6 +52,14 @@ send(mac_callback_t sent, void *ptr)
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static void
|
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)
|
input(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -83,6 +91,7 @@ const struct rdc_driver stub_rdc_driver = {
|
||||||
"stub-rdc",
|
"stub-rdc",
|
||||||
init,
|
init,
|
||||||
send,
|
send,
|
||||||
|
send_list,
|
||||||
input,
|
input,
|
||||||
on,
|
on,
|
||||||
off,
|
off,
|
||||||
|
|
Loading…
Reference in a new issue