From 7fc714884a68b390248f1187d2eeb92a63509660 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 23 Jan 2010 09:51:18 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1540 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/include/channels.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'os/kernel/include/channels.h') 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 /** -- cgit v1.2.3