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,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…
Add table
Add a link
Reference in a new issue