mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Extends the MTD configdata device with the following features / additions:
1. Configurable option to use named config items instead of enumerated ID/Instance numbers. 2. Ability to iterate through the existing configdata items in the /dev/config device. 3. Ability to "unset" a configdata item. 4. Ability to perform "flash_eraseall" on the /dev/config device.
This commit is contained in:
@@ -161,6 +161,19 @@ config MTD_CONFIG_ERASEDVALUE
|
||||
most FLASH parts, this is 0xff, but could also be zero depending
|
||||
on the device.
|
||||
|
||||
config MTD_CONFIG_NAMED
|
||||
bool "Use item NAMES instead of ID/enumeration in Dev Config device"
|
||||
default n
|
||||
---help---
|
||||
Changes config item identification from ID/INST to NAMED values.
|
||||
|
||||
config MTD_CONFIG_NAME_LEN
|
||||
int "Dev Config item max name length"
|
||||
default 24
|
||||
depends on MTD_CONFIG_NAMED
|
||||
---help---
|
||||
Sets the maximum length of config item names.
|
||||
|
||||
endif # MTD_CONFIG
|
||||
|
||||
comment "MTD Device Drivers"
|
||||
|
||||
Reference in New Issue
Block a user