I2C. Added attributes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3549 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
62608271ad
commit
c995ee2bd3
|
@ -292,8 +292,24 @@
|
||||||
|
|
||||||
/* I2C attributes.*/
|
/* I2C attributes.*/
|
||||||
#define STM32_HAS_I2C1 TRUE
|
#define STM32_HAS_I2C1 TRUE
|
||||||
|
#define STM32_I2C1_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 0) | \
|
||||||
|
STM32_DMA_STREAM_ID_MSK(1, 5))
|
||||||
|
#define STM32_I2C1_RX_DMA_CHN 0x00100001
|
||||||
|
#define STM32_I2C1_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 7))
|
||||||
|
#define STM32_I2C1_TX_DMA_CHN 0x10000000
|
||||||
|
|
||||||
#define STM32_HAS_I2C2 TRUE
|
#define STM32_HAS_I2C2 TRUE
|
||||||
|
#define STM32_I2C2_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 2) | \
|
||||||
|
STM32_DMA_STREAM_ID_MSK(1, 3))
|
||||||
|
#define STM32_I2C2_RX_DMA_CHN 0x00007700
|
||||||
|
#define STM32_I2C2_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 7))
|
||||||
|
#define STM32_I2C2_TX_DMA_CHN 0x70000000
|
||||||
|
|
||||||
#define STM32_HAS_I2C3 TRUE
|
#define STM32_HAS_I2C3 TRUE
|
||||||
|
#define STM32_I2C3_RX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 2))
|
||||||
|
#define STM32_I2C3_RX_DMA_CHN 0x00000300
|
||||||
|
#define STM32_I2C3_TX_DMA_MSK (STM32_DMA_STREAM_ID_MSK(1, 4))
|
||||||
|
#define STM32_I2C3_TX_DMA_CHN 0x00030000
|
||||||
|
|
||||||
/* RTC attributes.*/
|
/* RTC attributes.*/
|
||||||
#define STM32_HAS_RTC TRUE
|
#define STM32_HAS_RTC TRUE
|
||||||
|
|
Loading…
Reference in New Issue