drivers/mtd_sdcard : Expose to kconfig
Expose Configurations to Kconfig
This commit is contained in:
parent
854145c884
commit
9737db935d
@ -12,6 +12,8 @@ endmenu # Actuator Device Drivers
|
|||||||
|
|
||||||
rsource "Kconfig.net"
|
rsource "Kconfig.net"
|
||||||
|
|
||||||
|
rsource "periph_common/Kconfig"
|
||||||
|
|
||||||
menu "Sensor Device Drivers"
|
menu "Sensor Device Drivers"
|
||||||
rsource "ads101x/Kconfig"
|
rsource "ads101x/Kconfig"
|
||||||
rsource "fxos8700/Kconfig"
|
rsource "fxos8700/Kconfig"
|
||||||
@ -22,6 +24,8 @@ rsource "opt3001/Kconfig"
|
|||||||
rsource "sps30/Kconfig"
|
rsource "sps30/Kconfig"
|
||||||
endmenu # Sensor Device Drivers
|
endmenu # Sensor Device Drivers
|
||||||
|
|
||||||
rsource "periph_common/Kconfig"
|
menu "Storage Device Drivers"
|
||||||
|
rsource "mtd_sdcard/Kconfig"
|
||||||
|
endmenu # Storage Device Drivers
|
||||||
|
|
||||||
endmenu # Drivers
|
endmenu # Drivers
|
||||||
|
|||||||
23
drivers/mtd_sdcard/Kconfig
Normal file
23
drivers/mtd_sdcard/Kconfig
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Copyright (c) 2020 Freie Universitaet Berlin
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
menuconfig KCONFIG_MODULE_MTD_SDCARD
|
||||||
|
bool "Configure MTD_SDCARD driver"
|
||||||
|
depends on MODULE_MTD_SDCARD
|
||||||
|
help
|
||||||
|
Configure the MTD_SDCARD driver using Kconfig.
|
||||||
|
|
||||||
|
if KCONFIG_MODULE_MTD_SDCARD
|
||||||
|
|
||||||
|
config MTD_SDCARD_ERASE
|
||||||
|
bool "Enable SD card erase"
|
||||||
|
help
|
||||||
|
Enable this to erase sector before a data write operation.
|
||||||
|
SDCards handle sector erase internally so it's
|
||||||
|
possible to directly write to the card without erasing
|
||||||
|
the sector first hence this feature is disabled by default.
|
||||||
|
|
||||||
|
endif # KCONFIG_MODULE_MTD_SDCARD
|
||||||
Loading…
x
Reference in New Issue
Block a user