mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/at24cxx: add modules to Kconfig
This commit is contained in:
parent
8abd8bc3d4
commit
4d35b803c4
@ -45,6 +45,7 @@ rsource "tmp00x/Kconfig"
|
||||
endmenu # Sensor Device Drivers
|
||||
|
||||
menu "Storage Device Drivers"
|
||||
rsource "at24cxxx/Kconfig"
|
||||
rsource "mtd/Kconfig"
|
||||
rsource "mtd_sdcard/Kconfig"
|
||||
endmenu # Storage Device Drivers
|
||||
|
69
drivers/at24cxxx/Kconfig
Normal file
69
drivers/at24cxxx/Kconfig
Normal file
@ -0,0 +1,69 @@
|
||||
# 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.
|
||||
#
|
||||
|
||||
choice
|
||||
bool "AT24CXXX EEPROM"
|
||||
depends on HAS_PERIPH_I2C
|
||||
depends on TEST_KCONFIG
|
||||
optional
|
||||
help
|
||||
This driver supports the multiple models, select one.
|
||||
|
||||
config MODULE_AT24C01
|
||||
bool "AT24C01"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C02
|
||||
bool "AT24C02"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C04
|
||||
bool "AT24C04"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C08A
|
||||
bool "AT24C08A"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C16A
|
||||
bool "AT24C16A"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C32
|
||||
bool "AT24C32"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C64
|
||||
bool "AT24C64"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C128
|
||||
bool "AT24C128"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C256
|
||||
bool "AT24C256"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C512
|
||||
bool "AT24C512"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
config MODULE_AT24C1024
|
||||
bool "AT24C1024"
|
||||
select MODULE_AT24CXXX
|
||||
|
||||
endchoice
|
||||
|
||||
config MODULE_AT24CXXX
|
||||
bool
|
||||
depends on HAS_PERIPH_I2C
|
||||
depends on TEST_KCONFIG
|
||||
select MODULE_PERIPH_I2C
|
||||
select MODULE_XTIMER
|
||||
|
||||
rsource "mtd/Kconfig"
|
13
drivers/at24cxxx/mtd/Kconfig
Normal file
13
drivers/at24cxxx/mtd/Kconfig
Normal file
@ -0,0 +1,13 @@
|
||||
# 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.
|
||||
#
|
||||
|
||||
config MODULE_MTD_AT24CXXX
|
||||
bool "MTD implementation for AT24CXXX"
|
||||
default y
|
||||
depends on MODULE_AT24CXXX
|
||||
depends on MODULE_MTD
|
||||
depends on TEST_KCONFIG
|
Loading…
Reference in New Issue
Block a user