2020-07-27 17:09:27 +02:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
menuconfig MODULE_PERIPH_I2C
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "I2C peripheral driver"
|
|
|
|
depends on HAS_PERIPH_I2C
|
2020-08-31 09:57:28 +02:00
|
|
|
select MODULE_PERIPH_COMMON
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
if MODULE_PERIPH_I2C
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_I2C
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize I2C peripheral"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_I2C_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Pin reconfiguration support"
|
|
|
|
depends on HAS_PERIPH_I2C_RECONFIGURE
|
|
|
|
|
|
|
|
# TODO: this module is actually just an artifact from the way periph_init_%
|
|
|
|
# modules are handled in Makefile. We need to define it to keep the list the
|
|
|
|
# same for now. We should be able to remove it later on.
|
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
config MODULE_PERIPH_INIT_I2C_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
bool "Auto initialize I2C pin reconfiguration support"
|
2020-08-31 09:57:28 +02:00
|
|
|
default y if MODULE_PERIPH_INIT
|
|
|
|
depends on MODULE_PERIPH_I2C_RECONFIGURE
|
2020-07-27 17:09:27 +02:00
|
|
|
|
2020-08-31 09:57:28 +02:00
|
|
|
endif # MODULE_PERIPH_I2C
|
2021-11-18 17:17:04 +01:00
|
|
|
|
|
|
|
osource "$(RIOTCPU)/$(CPU)/periph/Kconfig.i2c"
|