added declaration for simple_cc2420_get_txpower.

This commit is contained in:
nvt-se 2008-01-15 08:53:52 +00:00
parent 057cd5ac05
commit 8a38ffea87
2 changed files with 4 additions and 3 deletions

View file

@ -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);
}

View file

@ -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