tests: Support testing fatfs on mmc
Make another project configuration in the fat_fs_api test to allow using mmc for the test Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
bb41f7dc9d
commit
c4c5c239c7
3 changed files with 14 additions and 0 deletions
|
@ -13,6 +13,8 @@ The demo will run on native_posix and will use the on-board SPI flash.
|
||||||
cmake -DBOARD=native_posix ..
|
cmake -DBOARD=native_posix ..
|
||||||
make run
|
make run
|
||||||
|
|
||||||
|
To test fatfs on MMC, add this cmake option to your build command:
|
||||||
|
-DCONF_FILE=prj_mmc.conf
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Sample Output:
|
Sample Output:
|
||||||
|
|
9
tests/subsys/fs/fat_fs_api/prj_mmc.conf
Normal file
9
tests/subsys/fs/fat_fs_api/prj_mmc.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
CONFIG_FILE_SYSTEM=y
|
||||||
|
CONFIG_LOG=y
|
||||||
|
CONFIG_FAT_FILESYSTEM_ELM=y
|
||||||
|
CONFIG_SPI=y
|
||||||
|
CONFIG_GPIO=y
|
||||||
|
CONFIG_ZTEST=y
|
||||||
|
CONFIG_ZTEST_NEW_API=y
|
||||||
|
CONFIG_MMC_VOLUME_NAME="NAND"
|
||||||
|
CONFIG_MAIN_STACK_SIZE=4096
|
|
@ -8,3 +8,6 @@ tests:
|
||||||
filesystem.fat.api.lfn:
|
filesystem.fat.api.lfn:
|
||||||
extra_args: CONF_FILE="prj_lfn.conf"
|
extra_args: CONF_FILE="prj_lfn.conf"
|
||||||
platform_allow: native_posix
|
platform_allow: native_posix
|
||||||
|
filesystem.fat.api.mmc:
|
||||||
|
extra_args: CONF_FILE="prj_mmc.conf"
|
||||||
|
filter: dt_compat_enabled("zephyr,mmc-disk")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue