git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1540 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2010-01-23 09:51:18 +00:00
parent 11215c3bcb
commit 7fc714884a
2 changed files with 10 additions and 0 deletions

View File

@ -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
/**

View File

@ -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)
/**