diff --git a/core/dev/simple-cc2420.c b/core/dev/simple-cc2420.c index b0bb63917..8839bcbb9 100644 --- a/core/dev/simple-cc2420.c +++ b/core/dev/simple-cc2420.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: simple-cc2420.c,v 1.22 2008/01/15 08:52:16 nvt-se Exp $ + * @(#)$Id: simple-cc2420.c,v 1.23 2008/01/15 08:53:52 nvt-se Exp $ */ /* * This code is almost device independent and should be easy to port. @@ -600,7 +600,7 @@ simple_cc2420_set_txpower(u8_t power) } /*---------------------------------------------------------------------------*/ int -simple_cc2420_get_txpower() +simple_cc2420_get_txpower(void) { return (int)(getreg(CC2420_TXCTRL) & 0x001f); } diff --git a/core/dev/simple-cc2420.h b/core/dev/simple-cc2420.h index 8db414aab..da00fb3e6 100644 --- a/core/dev/simple-cc2420.h +++ b/core/dev/simple-cc2420.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: simple-cc2420.h,v 1.7 2008/01/07 14:41:34 adamdunkels Exp $ + * $Id: simple-cc2420.h,v 1.8 2008/01/15 08:53:52 nvt-se Exp $ */ /** @@ -66,6 +66,7 @@ extern const struct radio_driver simple_cc2420_driver; * \param power Between 1 and 31. */ void simple_cc2420_set_txpower(u8_t power); +int simple_cc2420_get_txpower(void); #define SIMPLE_CC2420_TXPOWER_MAX 31 #define SIMPLE_CC2420_TXPOWER_MIN 0