From 0cd848e854b65d37d71d83a833042294f9b874fd Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 19 Feb 2008 16:56:14 +0000 Subject: [PATCH] Fix typos from Bernie's review. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1144 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu/attr.h | 2 +- cpu/types.h | 4 ++-- kern/kfile.c | 4 ++-- kern/kfile.h | 11 ++++++----- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/cpu/attr.h b/cpu/attr.h index 5d0ce885..302b38c9 100644 --- a/cpu/attr.h +++ b/cpu/attr.h @@ -267,7 +267,7 @@ } while (0) /* - * If the kernel is in idle-spinning, the processor execute: + * If the kernel is in idle-spinning, the processor executes: * * IRQ_ENABLE; * CPU_IDLE; diff --git a/cpu/types.h b/cpu/types.h index 187d45f1..be9b5fd5 100644 --- a/cpu/types.h +++ b/cpu/types.h @@ -49,7 +49,7 @@ 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 @@ -86,7 +86,7 @@ typedef unsigned int cpustack_t; #warning Verify following costant #define SIZEOF_CPUSTACK_T 2 - + #elif CPU_AVR typedef uint8_t cpuflags_t; diff --git a/kern/kfile.c b/kern/kfile.c index 750836fc..28adc32a 100644 --- a/kern/kfile.c +++ b/kern/kfile.c @@ -59,7 +59,7 @@ /** - * Generic putc implementation using \a fd->write. + * Generic putc() implementation using \a fd->write. */ int kfile_putc(int _c, struct KFile *fd) { @@ -72,7 +72,7 @@ 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) { diff --git a/kern/kfile.h b/kern/kfile.h index 60b0ad64..4bb7a238 100644 --- a/kern/kfile.h +++ b/kern/kfile.h @@ -33,11 +33,11 @@ * * \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: @@ -74,7 +74,7 @@ * \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. @@ -90,6 +90,7 @@ #include #include +#include /* fwd decl */ struct KFile; @@ -110,7 +111,7 @@ typedef enum KSeekMode /** * 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. * \{ -- 2.25.1