Add I2C1 in Kconfig
This commit is contained in:
parent
52fa0189ad
commit
64c9eaa7dc
|
@ -1,3 +1,9 @@
|
|||
config BSP_USING_I2C
|
||||
bool "Enable I2C1 (PB6/7)"
|
||||
default n
|
||||
select RT_USING_I2C
|
||||
select RT_USING_I2C_BITOPS
|
||||
|
||||
config RT_USING_UART1
|
||||
bool "Enable UART1 (PA9/10)"
|
||||
default y
|
||||
|
|
|
@ -15,7 +15,7 @@ usart.c
|
|||
if GetDepend(['RT_USING_PIN']):
|
||||
src += ['gpio.c']
|
||||
|
||||
if GetDepend(['RT_USING_I2C_BITOPS']):
|
||||
if GetDepend(['BSP_USING_I2C']):
|
||||
src += ['i2c.c']
|
||||
|
||||
# add canbus driver.
|
||||
|
|
Loading…
Reference in New Issue