disk: disk_access_flash: Make sector size configurable in Kconfig
Make sector size used by flash disk configurable and expose new disk and fatfs configurations to Kconfig. Signed-off-by: Markus Fuchs <markus.fuchs@de.sauter-bc.com>
This commit is contained in:
parent
11f89c1fda
commit
ea6f7a4292
3 changed files with 12 additions and 1 deletions
|
@ -79,6 +79,12 @@ config DISK_ERASE_BLOCK_SIZE
|
|||
is erased at one time in flash storage.
|
||||
Typically it is equal to the flash memory page size.
|
||||
|
||||
config DISK_FLASH_SECTOR_SIZE
|
||||
int "Flash device sector size"
|
||||
default 512
|
||||
help
|
||||
This is the file system sector size in bytes.
|
||||
|
||||
config DISK_VOLUME_SIZE
|
||||
hex "Flash device volume size in hex"
|
||||
help
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#include <device.h>
|
||||
#include <drivers/flash.h>
|
||||
|
||||
#define SECTOR_SIZE 512
|
||||
#define SECTOR_SIZE CONFIG_DISK_FLASH_SECTOR_SIZE
|
||||
|
||||
static const struct device *flash_dev;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue