typedef uint16_t cpuflags_t; // FIXME
typedef unsigned int cpustack_t;
- #warning Verify following costant
+ #warning Verify following constant
#define SIZEOF_CPUSTACK_T 2
#elif CPU_X86
typedef unsigned int cpustack_t;
#warning Verify following costant
#define SIZEOF_CPUSTACK_T 2
-
+
#elif CPU_AVR
typedef uint8_t cpuflags_t;
/**
- * Generic putc implementation using \a fd->write.
+ * Generic putc() implementation using \a fd->write.
*/
int kfile_putc(int _c, struct KFile *fd)
{
}
/**
- * Generic getc implementation using \a fd->read.
+ * Generic getc() implementation using \a fd->read.
*/
int kfile_getc(struct KFile *fd)
{
*
* \brief Virtual KFile I/O interface.
* KFile is a generic interface for file I/O.
- * Uses an of object oriented model to supply
+ * It uses an object-oriented model to supply
* a generic interface for drivers to communicate.
- * This module contains only definitions,data structure
+ * This module contains only definitions, the instance structure
* and an API.
- * Each KFile user should implement at least some core functions.
+ * Each KFile user should implement at least some methods.
* E.G.
* If you have a serial driver and want to comply to KFile interface,
* you have to declare your context structure:
* \endcode
* KFILESERIAL macro helps to ensure that obj passed is really a Serial.
*
- * KFile interface do not supply the open function: this is done deliberately,
+ * KFile interface do not supply the open function: this is deliberate,
* because in embedded systems each device has its own init parameters.
* For the same reason specific file settings (like baudrate for Serial, for example)
* are demanded to specific driver implementation.
#include <cfg/compiler.h>
#include <cfg/debug.h>
+#include <cfg/macros.h>
/* fwd decl */
struct KFile;
/**
* Prototypes for KFile access functions.
- * I/O file function must be ANSI compliant.
+ * I/O file functions must be ANSI compliant.
* \note A KFile user can choose which function subset to implement,
* but has to set to NULL unimplemented features.
* \{