projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sig_wait(): Don't call proc_shecule() with interrupts disabled
[bertos.git]
/
bertos
/
kern
/
kfile.h
diff --git
a/bertos/kern/kfile.h
b/bertos/kern/kfile.h
index ccaeb8027ab272793b62bcb2c63832af5dcd81c6..bcc88e7218751bd2b4862eb3329b980915e767d4 100644
(file)
--- a/
bertos/kern/kfile.h
+++ b/
bertos/kern/kfile.h
@@
-27,7
+27,7
@@
* the GNU General Public License.
*
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
* the GNU General Public License.
*
* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
- * Copyright 1999, 2000, 2001, 2003 Bern
ardo Innocenti <bernie@develer.com
>
+ * Copyright 1999, 2000, 2001, 2003 Bern
ie Innocenti <bernie@codewiz.org
>
*
* -->
*
*
* -->
*
@@
-43,20
+43,20
@@
* you have to declare your context structure:
*
* \code
* you have to declare your context structure:
*
* \code
- * typedef struct
KFileSerial
+ * typedef struct
SerialKFile
* {
* {
- * KFile fd;
- * Serial *ser;
- * }
KFile
Serial;
+ *
KFile fd;
+ *
Serial *ser;
+ * } Serial;
* \endcode
*
* \endcode
*
- * You should also supply a macro for casting KFile to
KFileSerial
:
+ * You should also supply a macro for casting KFile to
SerialKFile
:
*
* \code
*
* \code
- * INLINE
KFileSerial * KFILESERIAL
(KFile *fd)
+ * INLINE
Serial * SERIAL_CAST
(KFile *fd)
* {
* {
- * ASSERT(fd->_type == KFT_SERIAL);
- *
return (KFile
Serial *)fd;
+ *
ASSERT(fd->_type == KFT_SERIAL);
+ *
return (
Serial *)fd;
* }
* \endcode
*
* }
* \endcode
*
@@
-67,12
+67,12
@@
* \code
* static int ser_kfile_close(struct KFile *fd)
* {
* \code
* static int ser_kfile_close(struct KFile *fd)
* {
- *
KFileSerial *fds = KFILESERIAL
(fd);
- * ser_close(fds->ser);
- * return 0;
+ *
SerialKFile *fds = SerialKFile
(fd);
+ *
ser_close(fds->ser);
+ *
return 0;
* }
* \endcode
* }
* \endcode
- *
KFILESERIAL
macro helps to ensure that obj passed is really a Serial.
+ *
SerialKFile
macro helps to ensure that obj passed is really a Serial.
*
* KFile interface do not supply the open function: this is deliberate,
* because in embedded systems each device has its own init parameters.
*
* KFile interface do not supply the open function: this is deliberate,
* because in embedded systems each device has its own init parameters.
@@
-80,7
+80,8
@@
* are demanded to specific driver implementation.
*
* \version $Id$
* are demanded to specific driver implementation.
*
* \version $Id$
- * \author Bernardo Innocenti <bernie@develer.com>
+ *
+ * \author Bernie Innocenti <bernie@codewiz.org>
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
*/
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
*/
@@
-262,7
+263,7
@@
INLINE void kfile_clearerr(struct KFile *fd)
/**
* Kfile test function.
*/
/**
* Kfile test function.
*/
-int kfile_testSet
u
p(void);
+int kfile_testSet
U
p(void);
int kfile_testRun(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size);
int kfile_testTearDown(void);
int kfile_testRun(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size);
int kfile_testTearDown(void);