fs: Updates file system sample app to use flash storage diskio

Demonstrates the use of flash storage media for file system. This
uses the on-board SPI flash on Arduino 101 board.

Jira: ZEP-447
Change-Id: Ia571cff743f338d57922df68172e94c3f18a802d
Signed-off-by: Kuo-Lang Tseng <kuo-lang.tseng@intel.com>
This commit is contained in:
Kuo-Lang Tseng 2016-07-31 16:46:54 -07:00 committed by Andrew Boie
commit 101acb4842
4 changed files with 12 additions and 8 deletions

View file

@ -1,5 +1,5 @@
KERNEL_TYPE = nano KERNEL_TYPE = nano
BOARD ?= qemu_x86 BOARD ?= arduino_101
CONF_FILE = prj.conf CONF_FILE = prj.conf
include ${ZEPHYR_BASE}/Makefile.inc include ${ZEPHYR_BASE}/Makefile.inc

View file

@ -7,11 +7,9 @@ Demonstrates basic file and dir operations using the Zephyr file system.
Building and Running Project: Building and Running Project:
While this demo uses RAM to emulate storage, it can be tested using QEMU. The demo will run on Arduino 101 and will use the on-board SPI flash.
Following command will build it for running on QEMU: make BOARD=arduino_101
make qemu
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------

View file

@ -1,3 +1,9 @@
CONFIG_FILE_SYSTEM=y CONFIG_FILE_SYSTEM=y
CONFIG_FILE_SYSTEM_FAT=y CONFIG_FILE_SYSTEM_FAT=y
CONFIG_FS_FAT_RAM_DISK=y CONFIG_FS_FAT_FLASH_DISK=y
CONFIG_FS_FAT_FLASH_DISK_W25QXXDV=y
CONFIG_FLASH=y
CONFIG_SPI=y
CONFIG_GPIO=y
CONFIG_SPI_CS_GPIO=y
CONFIG_SPI_0_CS_GPIO_PIN=24

View file

@ -2,12 +2,12 @@
tags = fs tags = fs
build_only = true build_only = true
arch_whitelist = x86 arch_whitelist = x86
platform_whitelist = qemu_x86 platform_whitelist = arduino_101
kernel = nano kernel = nano
[test-micro] [test-micro]
tags = fs tags = fs
build_only = true build_only = true
arch_whitelist = x86 arch_whitelist = x86
platform_whitelist = qemu_x86 platform_whitelist = arduino_101
kernel = micro kernel = micro