projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Camelcase the testSetUp functions.
[bertos.git]
/
bertos
/
kern
/
kfile.h
diff --git
a/bertos/kern/kfile.h
b/bertos/kern/kfile.h
index dc8a30413219a5cdcd993e81e5e5da507cd1d0b3..0e375cf3f4fcb8d2967b3cb509fa5e03e4e25bd3 100644
(file)
--- a/
bertos/kern/kfile.h
+++ b/
bertos/kern/kfile.h
@@
-45,8
+45,8
@@
* \code
* typedef struct KFileSerial
* {
* \code
* typedef struct KFileSerial
* {
- * KFile fd;
- * Serial *ser;
+ *
KFile fd;
+ *
Serial *ser;
* } KFileSerial;
* \endcode
*
* } KFileSerial;
* \endcode
*
@@
-55,8
+55,8
@@
* \code
* INLINE KFileSerial * KFILESERIAL(KFile *fd)
* {
* \code
* INLINE KFileSerial * KFILESERIAL(KFile *fd)
* {
- * ASSERT(fd->_type == KFT_SERIAL);
- * return (KFileSerial *)fd;
+ *
ASSERT(fd->_type == KFT_SERIAL);
+ *
return (KFileSerial *)fd;
* }
* \endcode
*
* }
* \endcode
*
@@
-67,9
+67,9
@@
* \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;
+ *
KFileSerial *fds = KFILESERIAL(fd);
+ *
ser_close(fds->ser);
+ *
return 0;
* }
* \endcode
* KFILESERIAL macro helps to ensure that obj passed is really a Serial.
* }
* \endcode
* KFILESERIAL macro helps to ensure that obj passed is really a Serial.
@@
-80,6
+80,7
@@
* are demanded to specific driver implementation.
*
* \version $Id$
* are demanded to specific driver implementation.
*
* \version $Id$
+ *
* \author Bernardo Innocenti <bernie@develer.com>
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
* \author Bernardo Innocenti <bernie@develer.com>
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
@@
-262,6
+263,8
@@
INLINE void kfile_clearerr(struct KFile *fd)
/**
* Kfile test function.
*/
/**
* Kfile test function.
*/
-bool kfile_test(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size);
+int kfile_testSetUp(void);
+int kfile_testRun(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size);
+int kfile_testTearDown(void);
#endif /* KERN_KFILE_H */
#endif /* KERN_KFILE_H */