Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2020-11-26 22:51:32 +0300
committerChristopher Haster <chaster@utexas.edu>2020-11-29 05:11:36 +0300
commit190eb833a2e6f2e26bb5a5f30119978cbfe51aea (patch)
treed472cf10c5c38af90d1e373065e9115489ac6742 /scripts
parent30ed816febdedd71fecbe925e2c157ce6cb003ce (diff)
Changed bd callbacks to use "bd_" prefix
This makes the block-device related operations more clearly block-device related operations, and helps avoid possible conflicts with user provided `lfs_bd_read/prog/erase` functions in the LFS_STATICCFG mode.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/test.py b/scripts/test.py
index b6fb3eb..1e19ee5 100755
--- a/scripts/test.py
+++ b/scripts/test.py
@@ -97,11 +97,11 @@ PROLOGUE = """
__attribute__((unused)) int err;
__attribute__((unused)) const struct lfs_cfg cfg = {
- .ctx = &bd,
- .read = lfs_testbd_readctx,
- .prog = lfs_testbd_progctx,
- .erase = lfs_testbd_erasectx,
- .sync = lfs_testbd_syncctx,
+ .bd_ctx = &bd,
+ .bd_read = lfs_testbd_readctx,
+ .bd_prog = lfs_testbd_progctx,
+ .bd_erase = lfs_testbd_erasectx,
+ .bd_sync = lfs_testbd_syncctx,
.read_size = LFS_READ_SIZE,
.prog_size = LFS_PROG_SIZE,
.block_size = LFS_BLOCK_SIZE,