diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-25 18:50:35 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-25 18:50:35 +0000 |
commit | a66602c99d316ecfb03e47dcf9b3fe4167edc580 (patch) | |
tree | b3460b9bab1679de908cbee4b87233d5fa2e7510 /os/kernel/include/channels.h | |
parent | 41a4ecfc808882819791e6b126f27ebad7248ae5 (diff) | |
download | ChibiOS-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/include/channels.h')
-rw-r--r-- | os/kernel/include/channels.h | 24 |
1 files changed, 12 insertions, 12 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.
*/
|