From 5f265ced2fd1de6e08e764b0d80979f1ca847843 Mon Sep 17 00:00:00 2001 From: Niclas Finne Date: Tue, 1 Apr 2014 16:14:50 +0200 Subject: [PATCH] Added stub for extended radio API for nullradio --- core/dev/nullradio.c | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/core/dev/nullradio.c b/core/dev/nullradio.c index c2b978f2b..7f17d5638 100644 --- a/core/dev/nullradio.c +++ b/core/dev/nullradio.c @@ -28,7 +28,7 @@ send(const void *payload, unsigned short payload_len) } /*---------------------------------------------------------------------------*/ static int -read(void *buf, unsigned short buf_len) +radio_read(void *buf, unsigned short buf_len) { return 0; } @@ -63,17 +63,45 @@ off(void) return 0; } /*---------------------------------------------------------------------------*/ +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 nullradio_driver = { init, prepare, transmit, send, - read, + radio_read, channel_clear, receiving_packet, pending_packet, on, off, + get_value, + set_value, + get_object, + set_object }; /*---------------------------------------------------------------------------*/