|
| 1 | +# Copyright (c) 2025 Nordic Semiconductor ASA |
| 2 | +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause |
| 3 | + |
| 4 | +menu "MSC sample options" |
| 5 | + |
| 6 | +config APP_WIPE_STORAGE |
| 7 | + bool "Option to clear the flash area before mounting" |
| 8 | + help |
| 9 | + Use this to force an existing file system to be created. |
| 10 | + |
| 11 | +choice |
| 12 | + prompt "Storage and file system type used by the application" |
| 13 | + default APP_MSC_STORAGE_NONE |
| 14 | + help |
| 15 | + Specify the type of storage and file system. |
| 16 | + |
| 17 | +config APP_MSC_STORAGE_NONE |
| 18 | + bool "Use RAM disk as block device" |
| 19 | + |
| 20 | +config APP_MSC_STORAGE_RAM |
| 21 | + bool "Use RAM disk and FAT file system" |
| 22 | + imply FILE_SYSTEM |
| 23 | + imply FAT_FILESYSTEM_ELM |
| 24 | + |
| 25 | +config APP_MSC_STORAGE_FLASH_FATFS |
| 26 | + bool "Use FLASH disk and FAT file system" |
| 27 | + imply DISK_DRIVER_FLASH |
| 28 | + imply FILE_SYSTEM |
| 29 | + imply FAT_FILESYSTEM_ELM |
| 30 | + |
| 31 | +config APP_MSC_STORAGE_FLASH_LITTLEFS |
| 32 | + bool "Use FLASH disk and LittleFS" |
| 33 | + imply DISK_DRIVER_FLASH |
| 34 | + imply FILE_SYSTEM |
| 35 | + imply FILE_SYSTEM_LITTLEFS |
| 36 | + |
| 37 | +config APP_MSC_STORAGE_SDCARD |
| 38 | + bool "Use SDHC and FAT file system" |
| 39 | + imply DISK_DRIVER_SDMMC |
| 40 | + imply FILE_SYSTEM |
| 41 | + imply FAT_FILESYSTEM_ELM |
| 42 | + |
| 43 | +endchoice |
| 44 | + |
| 45 | +config MASS_STORAGE_DISK_NAME |
| 46 | + default "NAND" if DISK_DRIVER_FLASH |
| 47 | + default "RAM" if DISK_DRIVER_RAM |
| 48 | + default "SD" if DISK_DRIVER_SDMMC |
| 49 | + |
| 50 | +if DISK_DRIVER_FLASH |
| 51 | + |
| 52 | +config FLASH_MAP |
| 53 | + default y |
| 54 | + |
| 55 | +config FLASH_PAGE_LAYOUT |
| 56 | + default y |
| 57 | + |
| 58 | +config FLASH_LOG_LEVEL |
| 59 | + default 3 |
| 60 | + |
| 61 | +if NORDIC_QSPI_NOR |
| 62 | + |
| 63 | +config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE |
| 64 | + default 4096 |
| 65 | + |
| 66 | +endif # NORDIC_QSPI_NOR |
| 67 | + |
| 68 | +endif # DISK_DRIVER_FLASH |
| 69 | + |
| 70 | +endmenu |
| 71 | + |
| 72 | +source "samples/subsys/usb/common/Kconfig.sample_usbd" |
| 73 | + |
| 74 | +source "Kconfig.zephyr" |
0 commit comments