STM32 I2C: Do not allow CONFIG_I2C_POLLED and CONFIG_I2C_DMA

This commit is contained in:
rg 2017-03-23 11:24:18 -06:00 committed by Gregory Nutt
parent 2ec72c8f94
commit 9353ca6039
1 changed files with 1 additions and 2 deletions

View File

@ -6201,12 +6201,11 @@ config STM32_I2C_DUTY16_9
config STM32_I2C_DMA
bool "I2C DMA Support"
default n
depends on STM32_I2C && STM32_STM32F40XX && STM32_DMA1
depends on STM32_I2C && STM32_STM32F40XX && STM32_DMA1 && !I2C_POLLED
---help---
This option enables the DMA for I2C transfers.
Note: The user can define CONFIG_I2C_DMAPRIO: a custom priority value for the
I2C dma streams, else the default priority level is set to medium.
Note: This option is compatible with CONFIG_I2C_POLLED.
endmenu