aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/include/channels.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/kernel/include/channels.h')
-rw-r--r--os/kernel/include/channels.h24
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.
*/