aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-25 18:50:35 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-01-25 18:50:35 +0000
commita66602c99d316ecfb03e47dcf9b3fe4167edc580 (patch)
treeb3460b9bab1679de908cbee4b87233d5fa2e7510 /os/kernel
parent41a4ecfc808882819791e6b126f27ebad7248ae5 (diff)
downloadChibiOS-a66602c99d316ecfb03e47dcf9b3fe4167edc580.tar.gz
ChibiOS-a66602c99d316ecfb03e47dcf9b3fe4167edc580.tar.bz2
ChibiOS-a66602c99d316ecfb03e47dcf9b3fe4167edc580.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1545 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel')
-rw-r--r--os/kernel/include/channels.h24
-rw-r--r--os/kernel/include/debug.h6
-rw-r--r--os/kernel/include/streams.h6
3 files changed, 18 insertions, 18 deletions
diff --git a/os/kernel/include/channels.h b/os/kernel/include/channels.h
index 49a718f1e..663ddc9d3 100644
--- a/os/kernel/include/channels.h
+++ b/os/kernel/include/channels.h
@@ -31,7 +31,7 @@
* @brief @p BaseChannel specific methods.
*/
#define _base_channel_methods \
- _base_sequental_stream_methods; \
+ _base_sequental_stream_methods \
/* Channel output check.*/ \
bool_t (*putwouldblock)(void *instance); \
/* Channel input check.*/ \
@@ -44,12 +44,12 @@
size_t (*writet)(void *instance, const uint8_t *bp, \
size_t n, systime_t time); \
/* Channel read method with timeout specification.*/ \
- size_t (*readt)(void *instance, uint8_t *bp, size_t n, systime_t time)
+ size_t (*readt)(void *instance, uint8_t *bp, size_t n, systime_t time);
/**
* @brief @p BaseChannel specific data.
* @note It is empty because @p BaseChannel is only an interface without
- * implementation.
+ * implementation.
*/
#define _base_channel_data \
_base_sequental_stream_data
@@ -58,7 +58,7 @@
* @brief @p BaseChannel virtual methods table.
*/
struct BaseChannelVMT { \
- _base_channel_methods; \
+ _base_channel_methods \
};
/**
@@ -66,14 +66,14 @@ struct BaseChannelVMT { \
*
* @brief Base channel class.
* @details This class represents a generic, byte-wide, I/O channel. This class
- * introduces generic I/O primitives with timeout specification.
+ * introduces generic I/O primitives with timeout specification.
*/
typedef struct {
/**
* Virtual Methods Table.
*/
const struct BaseChannelVMT *vmt;
- _base_channel_data;
+ _base_channel_data
} BaseChannel;
/**
@@ -209,17 +209,17 @@ typedef struct {
* @brief @p BaseAsynchronousChannel specific data.
*/
#define _base_asynchronous_channel_data \
- _base_channel_data; \
+ _base_channel_data \
/* Data Available EventSource.*/ \
EventSource ievent; \
/* Data Transmitted EventSource.*/ \
- EventSource oevent
+ EventSource oevent;
/**
* @brief @p BaseAsynchronousChannel virtual methods table.
*/
struct BaseAsynchronousChannelVMT {
- _base_asynchronous_channel_methods;
+ _base_asynchronous_channel_methods
};
/**
@@ -227,21 +227,21 @@ struct BaseAsynchronousChannelVMT {
*
* @brief Base asynchronous channel class.
* @details This class extends @p BaseChannel by adding event sources fields
- * for asynchronous I/O for use in an event-driven environment.
+ * for asynchronous I/O for use in an event-driven environment.
*/
typedef struct {
/**
* Virtual Methods Table.
*/
const struct BaseAsynchronousChannelVMT *vmt;
- _base_asynchronous_channel_data;
+ _base_asynchronous_channel_data
} BaseAsynchronousChannel;
/**
* @brief Returns the write event source.
* @details The write event source is broadcasted when the channel is ready
* for write operations. This usually happens when the internal
- * output queue becomes empty.
+ * output queue becomes empty.
* @param[in] ip pointer to a @p BaseAsynchronousChannel or derived class
* @return A pointer to an @p EventSource object.
*/
diff --git a/os/kernel/include/debug.h b/os/kernel/include/debug.h
index 2987c3489..1584cec86 100644
--- a/os/kernel/include/debug.h
+++ b/os/kernel/include/debug.h
@@ -28,7 +28,7 @@
#define _DEBUG_H_
/**
- * @brief Trace buffer entries.
+ * @brief Trace buffer entries.
*/
#ifndef TRACE_BUFFER_SIZE
#define TRACE_BUFFER_SIZE 64
@@ -53,7 +53,7 @@
#endif
/**
- * @brief Trace buffer record.
+ * @brief Trace buffer record.
*/
typedef struct {
void *cse_wtobjp; /**< Object where going to sleep.*/
@@ -63,7 +63,7 @@ typedef struct {
} CtxSwcEvent;
/**
- * @brief Trace buffer header.
+ * @brief Trace buffer header.
*/
typedef struct {
unsigned tb_size; /**< Trace buffer size (records).*/
diff --git a/os/kernel/include/streams.h b/os/kernel/include/streams.h
index a65c2e017..624f4fd95 100644
--- a/os/kernel/include/streams.h
+++ b/os/kernel/include/streams.h
@@ -34,7 +34,7 @@
/* Stream write buffer method.*/ \
size_t (*write)(void *instance, const uint8_t *bp, size_t n); \
/* Stream read buffer method.*/ \
- size_t (*read)(void *instance, uint8_t *bp, size_t n)
+ size_t (*read)(void *instance, uint8_t *bp, size_t n);
/**
* @brief @p BaseSequentialStream specific data.
@@ -47,7 +47,7 @@
* @brief @p BaseSequentialStream virtual methods table.
*/
struct BaseSequentialStreamVMT {
- _base_sequental_stream_methods;
+ _base_sequental_stream_methods
};
/**
@@ -60,7 +60,7 @@ typedef struct {
* Virtual Methods Table.
*/
const struct BaseSequentialStreamVMT *vmt;
- _base_sequental_stream_data;
+ _base_sequental_stream_data
} BaseSequentialStream;
/**