I2C. STM32F1xx define clause fixed.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4560 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
63351a3680
commit
b058afec84
|
@ -754,7 +754,7 @@ msg_t i2c_lld_master_receive_timeout(I2CDriver *i2cp, i2caddr_t addr,
|
|||
I2C_TypeDef *dp = i2cp->i2c;
|
||||
VirtualTimer vt;
|
||||
|
||||
#if defined(STM32F1XX)
|
||||
#if defined(STM32F1XX_I2C)
|
||||
chDbgCheck((rxbytes > 1), "i2c_lld_master_receive_timeout");
|
||||
#endif
|
||||
|
||||
|
@ -835,7 +835,7 @@ msg_t i2c_lld_master_transmit_timeout(I2CDriver *i2cp, i2caddr_t addr,
|
|||
I2C_TypeDef *dp = i2cp->i2c;
|
||||
VirtualTimer vt;
|
||||
|
||||
#if defined(STM32F1XX)
|
||||
#if defined(STM32F1XX_I2C)
|
||||
chDbgCheck(((rxbytes == 0) || ((rxbytes > 1) && (rxbuf != NULL))),
|
||||
"i2c_lld_master_transmit_timeout");
|
||||
#endif
|
||||
|
|
|
@ -199,6 +199,14 @@
|
|||
#define STM32_I2C_I2C2_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 4)
|
||||
|
||||
#endif /* !STM32_ADVANCED_DMA*/
|
||||
|
||||
/* Flag for the whole STM32F1XX family. */
|
||||
#if defined(STM32F10X_LD_VL) || defined(STM32F10X_MD_VL) || \
|
||||
defined(STM32F10X_LD) || defined(STM32F10X_MD) || \
|
||||
defined(STM32F10X_HD) || defined(STM32F10X_XL) || \
|
||||
defined(STM32F10X_CL)
|
||||
#define STM32F1XX_I2C
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue