diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-23 09:51:18 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-01-23 09:51:18 +0000 |
commit | 7fc714884a68b390248f1187d2eeb92a63509660 (patch) | |
tree | 3293d61dcf7cb230047d71a40fe5839f1b2affa6 | |
parent | 11215c3bcb0b0cbe5794cfc92d0c20de6c8696d9 (diff) | |
download | ChibiOS-7fc714884a68b390248f1187d2eeb92a63509660.tar.gz ChibiOS-7fc714884a68b390248f1187d2eeb92a63509660.tar.bz2 ChibiOS-7fc714884a68b390248f1187d2eeb92a63509660.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1540 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/kernel/include/channels.h | 8 | ||||
-rw-r--r-- | os/kernel/include/streams.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/os/kernel/include/channels.h b/os/kernel/include/channels.h index 7d3207b3a..49a718f1e 100644 --- a/os/kernel/include/channels.h +++ b/os/kernel/include/channels.h @@ -32,12 +32,18 @@ */
#define _base_channel_methods \
_base_sequental_stream_methods; \
+ /* Channel output check.*/ \
bool_t (*putwouldblock)(void *instance); \
+ /* Channel input check.*/ \
bool_t (*getwouldblock)(void *instance); \
+ /* Channel put method with timeout specification.*/ \
msg_t (*put)(void *instance, uint8_t b, systime_t time); \
+ /* Channel get method with timeout specification.*/ \
msg_t (*get)(void *instance, systime_t time); \
+ /* Channel write method with timeout specification.*/ \
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)
/**
@@ -204,7 +210,9 @@ typedef struct { */
#define _base_asynchronous_channel_data \
_base_channel_data; \
+ /* Data Available EventSource.*/ \
EventSource ievent; \
+ /* Data Transmitted EventSource.*/ \
EventSource oevent
/**
diff --git a/os/kernel/include/streams.h b/os/kernel/include/streams.h index 80fa72e46..a65c2e017 100644 --- a/os/kernel/include/streams.h +++ b/os/kernel/include/streams.h @@ -31,7 +31,9 @@ * @brief BaseSequentialStream specific methods.
*/
#define _base_sequental_stream_methods \
+ /* 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)
/**
|