Minor code style fixes

This commit is contained in:
adamdunkels 2009-02-24 21:30:20 +00:00
parent 0ded8897e6
commit e34e97cd6f
2 changed files with 15 additions and 13 deletions

View File

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: leds.c,v 1.6 2008/09/29 11:35:28 joxe Exp $
* @(#)$Id: leds.c,v 1.7 2009/02/24 21:30:20 adamdunkels Exp $
*/
#include "dev/leds.h"
@ -113,14 +113,15 @@ leds_toggle(unsigned char ledv)
{
leds_invert(ledv);
}
/*---------------------------------------------------------------------------*/
/* invert the invert register using the leds parameter */
void leds_invert(unsigned char ledv) {
void
leds_invert(unsigned char ledv) {
invert = invert ^ ledv;
show_leds(ledv);
}
/*---------------------------------------------------------------------------*/
void leds_green(int o) { o?leds_on(LEDS_GREEN):leds_off(LEDS_GREEN); }
void leds_yellow(int o) { o?leds_on(LEDS_YELLOW):leds_off(LEDS_YELLOW); }
void leds_red(int o) { o?leds_on(LEDS_RED):leds_off(LEDS_RED); }
/*---------------------------------------------------------------------------*/

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)$Id: uart1.c,v 1.8 2009/01/31 12:46:57 joxe Exp $
* @(#)$Id: uart1.c,v 1.9 2009/02/24 21:31:10 adamdunkels Exp $
*/
/*
@ -46,7 +46,8 @@ static int (*uart1_input_handler)(unsigned char c);
static uint8_t rx_in_progress;
/*---------------------------------------------------------------------------*/
uint8_t
uart1_active(void) {
uart1_active(void)
{
return ((~ UTCTL1) & TXEPT) | rx_in_progress;
}
/*---------------------------------------------------------------------------*/