git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6414 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
8d459a2883
commit
3d2ebf13f5
|
@ -143,7 +143,7 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define chnWrite(ip, bp, n) streamSequentialStreamWrite(ip, bp, n)
|
||||
#define chnWrite(ip, bp, n) streamWrite(ip, bp, n)
|
||||
|
||||
/**
|
||||
* @brief Channel blocking write with timeout.
|
||||
|
@ -177,7 +177,7 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define chnRead(ip, bp, n) streamSequentialStreamRead(ip, bp, n)
|
||||
#define chnRead(ip, bp, n) streamRead(ip, bp, n)
|
||||
|
||||
/**
|
||||
* @brief Channel blocking read with timeout.
|
||||
|
|
|
@ -90,6 +90,8 @@ typedef struct {
|
|||
_base_sequential_stream_data
|
||||
} BaseSequentialStream;
|
||||
|
||||
#endif /* !defined(_CHIBIOS_RT_)*/
|
||||
|
||||
/**
|
||||
* @name Macro Functions (BaseSequentialStream)
|
||||
* @{
|
||||
|
@ -107,7 +109,7 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define streamSequentialStreamWrite(ip, bp, n) ((ip)->vmt->write(ip, bp, n))
|
||||
#define streamWrite(ip, bp, n) ((ip)->vmt->write(ip, bp, n))
|
||||
|
||||
/**
|
||||
* @brief Sequential Stream read.
|
||||
|
@ -122,7 +124,7 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define streamSequentialStreamRead(ip, bp, n) ((ip)->vmt->read(ip, bp, n))
|
||||
#define streamRead(ip, bp, n) ((ip)->vmt->read(ip, bp, n))
|
||||
|
||||
/**
|
||||
* @brief Sequential Stream blocking byte write.
|
||||
|
@ -138,7 +140,7 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define streamSequentialStreamPut(ip, b) ((ip)->vmt->put(ip, b))
|
||||
#define streamPut(ip, b) ((ip)->vmt->put(ip, b))
|
||||
|
||||
/**
|
||||
* @brief Sequential Stream blocking byte read.
|
||||
|
@ -152,11 +154,9 @@ typedef struct {
|
|||
*
|
||||
* @api
|
||||
*/
|
||||
#define streamSequentialStreamGet(ip) ((ip)->vmt->get(ip))
|
||||
#define streamGet(ip) ((ip)->vmt->get(ip))
|
||||
/** @} */
|
||||
|
||||
#endif /* !defined(_CHIBIOS_RT_)*/
|
||||
|
||||
#endif /* _HAL_STREAMS_H_ */
|
||||
|
||||
/** @} */
|
||||
|
|
Loading…
Reference in New Issue