Added global #ifndef __SIO_H__ and some comments

This commit is contained in:
goldsimon 2008-03-27 18:06:02 +00:00
parent aee9c4c8e6
commit 64fa8d78bc

View File

@ -32,16 +32,24 @@
* It needs to be implemented by those platforms which need SLIP or PPP * It needs to be implemented by those platforms which need SLIP or PPP
*/ */
#ifndef __SIO_H__
#define __SIO_H__
#include "lwip/arch.h" #include "lwip/arch.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* If you want to define sio_fd_t elsewhere or differently,
define this in your cc.h file. */
#ifndef __sio_fd_t_defined #ifndef __sio_fd_t_defined
typedef void * sio_fd_t; typedef void * sio_fd_t;
#endif #endif
/* The following functions can be defined to something else in your cc.h file
or be implemented in your custom sio.c file. */
#ifndef sio_open #ifndef sio_open
sio_fd_t sio_open(u8_t); sio_fd_t sio_open(u8_t);
#endif #endif
@ -69,3 +77,5 @@ void sio_read_abort(sio_fd_t);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* __SIO_H__ */