I2C. Added wrappers with TIME_INFINITE timeout.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3715 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
05b812d1bf
commit
1c62f74c05
|
@ -99,6 +99,21 @@ typedef enum {
|
||||||
/* Driver macros. */
|
/* Driver macros. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Wrap i2cMasterTransmitTimeout function with TIME_INFINITE timeout.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
#define i2cMasterTransmit(i2cp, addr, txbuf, txbytes, rxbuf, rxbytes) \
|
||||||
|
(i2cMasterTransmitTimeout(i2cp, addr, txbuf, txbytes, rxbuf, rxbytes, \
|
||||||
|
TIME_INFINITE))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Wrap i2cMasterReceiveTimeout function with TIME_INFINITE timeout.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
#define i2cMasterReceive(i2cp, addr, rxbuf, rxbytes) \
|
||||||
|
(i2cMasterReceiveTimeout(i2cp, addr, rxbuf, rxbytes, TIME_INFINITE))
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* External declarations. */
|
/* External declarations. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue