Added stub for extended radio API for cc253x

This commit is contained in:
Niclas Finne 2014-04-01 16:23:17 +02:00
parent a98e153e23
commit 14ffa35b3f

View File

@ -483,6 +483,30 @@ off(void)
return 1; return 1;
} }
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/
static radio_result_t
get_value(radio_param_t param, radio_value_t *value)
{
return RADIO_RESULT_NOT_SUPPORTED;
}
/*---------------------------------------------------------------------------*/
static radio_result_t
set_value(radio_param_t param, radio_value_t value)
{
return RADIO_RESULT_NOT_SUPPORTED;
}
/*---------------------------------------------------------------------------*/
static radio_result_t
get_object(radio_param_t param, void *dest, size_t size)
{
return RADIO_RESULT_NOT_SUPPORTED;
}
/*---------------------------------------------------------------------------*/
static radio_result_t
set_object(radio_param_t param, const void *src, size_t size)
{
return RADIO_RESULT_NOT_SUPPORTED;
}
/*---------------------------------------------------------------------------*/
const struct radio_driver cc2530_rf_driver = { const struct radio_driver cc2530_rf_driver = {
init, init,
prepare, prepare,
@ -494,5 +518,9 @@ const struct radio_driver cc2530_rf_driver = {
pending_packet, pending_packet,
on, on,
off, off,
get_value,
set_value,
get_object,
set_object
}; };
/*---------------------------------------------------------------------------*/ /*---------------------------------------------------------------------------*/