fix compiler warnings. patch from Jesper Karlsson.
This commit is contained in:
parent
2eaec8d38a
commit
172ffb74c7
4 changed files with 19 additions and 14 deletions
|
@ -28,11 +28,13 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: irq.h,v 1.1 2007/03/15 21:37:01 adamdunkels Exp $
|
||||
* @(#)$Id: irq.h,v 1.2 2009/04/08 14:56:00 nvt-se Exp $
|
||||
*/
|
||||
#ifndef __IRQ_H__
|
||||
#define __IRQ_H__
|
||||
|
||||
#include "lib/sensors.h"
|
||||
|
||||
void irq_adc12_activate(const struct sensors_sensor *sensor,
|
||||
unsigned char adcno, unsigned char config);
|
||||
|
||||
|
|
|
@ -45,7 +45,10 @@
|
|||
|
||||
#include "contiki.h"
|
||||
#include "contiki-msb430.h"
|
||||
#include "dev/adc.h"
|
||||
#include "dev/serial-line.h"
|
||||
#include "dev/sht11.h"
|
||||
#include "dev/watchdog.h"
|
||||
|
||||
extern volatile bool uart_edge;
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@ extern volatile unsigned char uart_lockcnt;
|
|||
#define UART_WAIT_LOCK(x) ( (uart_mode != x ) && (uart_lockcnt) )
|
||||
#define UART_MODE_IS(x) ( uart_mode == x )
|
||||
|
||||
typedef unsigned int(*fp_uart_handler)(unsigned char);
|
||||
typedef int(*fp_uart_handler)(unsigned char);
|
||||
|
||||
/**
|
||||
* \brief Initialize the UART module
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: rs232.c,v 1.7 2008/10/28 12:42:53 nvt-se Exp $
|
||||
* @(#)$Id: rs232.c,v 1.8 2009/04/08 14:56:03 nvt-se Exp $
|
||||
*/
|
||||
|
||||
/** \addtogroup esbrs232
|
||||
|
@ -64,17 +64,6 @@ rs232_init(void)
|
|||
rs232_set_speed(RS232_115200);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
rs232_send(char c)
|
||||
{
|
||||
/* Check if the UART is in RS232 mode before sending.
|
||||
This check can be ommitted if every access to rs232 locks the uart
|
||||
before using it.
|
||||
*/
|
||||
|
||||
putchar(c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
int
|
||||
putchar(int c)
|
||||
{
|
||||
|
@ -90,6 +79,17 @@ putchar(int c)
|
|||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
rs232_send(char c)
|
||||
{
|
||||
/* Check if the UART is in RS232 mode before sending.
|
||||
This check can be ommitted if every access to rs232 locks the uart
|
||||
before using it.
|
||||
*/
|
||||
|
||||
putchar(c);
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
rs232_set_speed(enum rs232_speed speed)
|
||||
{
|
||||
// baud
|
||||
|
|
Loading…
Reference in a new issue