forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: NFFS BSP: added BSP defaults for NFFS
* The BSP now includes default NFFS settings that are known to work * The NFFS area size and address offset definitions have been moved from the sample applications to the BSP CMakeLists.txt * Closes zephyrproject-rtos#13
- Loading branch information
Alexander Preißner
committed
May 28, 2018
1 parent
ac2f39b
commit afd3553
Showing
6 changed files
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
zephyr_library() | ||
zephyr_library_sources(pinmux.c) | ||
zephyr_library_include_directories(${PROJECT_SOURCE_DIR}/drivers) | ||
|
||
zephyr_compile_definitions( | ||
-DFLASH_AREA_NFFS_OFFSET=0 | ||
-DFLASH_AREA_NFFS_SIZE=8192 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) | ||
project(NONE) | ||
|
||
zephyr_compile_definitions( | ||
-DFLASH_AREA_NFFS_OFFSET=0 | ||
-DFLASH_AREA_NFFS_SIZE=8192 | ||
) | ||
|
||
target_link_libraries(app NFFS) | ||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ CONFIG_FLASH=y | |
CONFIG_FILE_SYSTEM=y | ||
CONFIG_FILE_SYSTEM_NFFS=y | ||
CONFIG_JSON_LIBRARY=y | ||
CONFIG_MAIN_STACK_SIZE=2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,6 @@ | ||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE) | ||
project(NONE) | ||
|
||
zephyr_compile_definitions( | ||
-DFLASH_AREA_NFFS_OFFSET=0 | ||
-DFLASH_AREA_NFFS_SIZE=8192 | ||
) | ||
|
||
target_link_libraries(app NFFS) | ||
FILE(GLOB app_sources src/*.c) | ||
target_sources(app PRIVATE ${app_sources}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ CONFIG_FLASH=y | |
CONFIG_FILE_SYSTEM=y | ||
CONFIG_FILE_SYSTEM_NFFS=y | ||
CONFIG_SPI=y | ||
CONFIG_MAIN_STACK_SIZE=2048 |