From c8eecc5b0219d607e58d6455b544de5ea9580d6a Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Fri, 25 May 2007 08:05:24 +0000 Subject: [PATCH] Updated types to avoid reliance on uIP includes --- core/dev/radio.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/core/dev/radio.h b/core/dev/radio.h index 6ec915a88..f2a19411c 100644 --- a/core/dev/radio.h +++ b/core/dev/radio.h @@ -42,7 +42,7 @@ * * This file is part of the Contiki operating system. * - * $Id: radio.h,v 1.4 2007/05/22 20:50:22 adamdunkels Exp $ + * $Id: radio.h,v 1.5 2007/05/25 08:05:24 adamdunkels Exp $ */ /** @@ -55,17 +55,15 @@ #ifndef __RADIO_H__ #define __RADIO_H__ -#include "contiki-net.h" - /** * The structure of a device driver for a radio in Contiki. */ struct radio_driver { - /** Send a packet */ - int (* send)(const u8_t *buf, u16_t len); + /** Send a packet */ + int (* send)(const void *payload, unsigned short payload_len); - /** Read a received packet. */ - u16_t (* read)(u8_t *buf, u16_t bufsize); + /** Read a received packet into a buffer. */ + int (* read)(void *buf, unsigned short buf_len); /** Set a function to be called when a packet has been received. */ void (* set_receive_function)(void (*f)(const struct radio_driver *d));