projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove hw unneeded hw include.
[bertos.git]
/
bertos
/
kern
/
kfile.h
diff --git
a/bertos/kern/kfile.h
b/bertos/kern/kfile.h
index 52f7991c88b75bf5112c65a0c26cdf2499ef70e2..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>
@@
-96,7
+97,7
@@
struct KFile;
typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function.
struct KFile;
typedef int32_t kfile_off_t; ///< KFile offset type, used by kfile_seek function.
-typedef int32_t kfile_size_t; ///< KFile size type, used in kfile struct.
+typedef
u
int32_t kfile_size_t; ///< KFile size type, used in kfile struct.
/**
* Costants for repositioning read/write file offset.
/**
* Costants for repositioning read/write file offset.
@@
-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 */