Skip to content

Commit dd7f6e4

Browse files
Ox11mlasch
authored andcommitted
[sg fromlist] fat_fs: Add reentrant zephyr support
This commit enables zephyr to configure the FatFs FF_FS_REENTRANT option and support fs actions from multiple threads. CONFIG_FS_FATFS_REENTRANT enables the option and provides zephyr mutex wrappers. R2D2-8240 FS reentrant zephyrproject-rtos#51484 Signed-off-by: Nicola Ochsenbein <[email protected]> (cherry picked from commit 67e7e5b)
1 parent 833fde3 commit dd7f6e4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

subsys/fs/Kconfig.fatfs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ config FS_FATFS_WINDOW_ALIGNMENT
155155
that, in worst scenario, value provided here may cause FATFS
156156
structure to have size of twice the value
157157

158+
config FS_FATFS_REENTRANT
159+
bool "FatFs reentrant"
160+
help
161+
Enable the re-entrancy (thread safe) option of the FatFs
162+
158163
endmenu
159164

160165
endif # FAT_FILESYSTEM_ELM

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ manifest:
4242
groups:
4343
- tools
4444
- name: fatfs
45-
revision: a30531af3a95a9a3ea7d771ea8a578ebfed45514
45+
revision: 44c0080876f28a193085078c7381908f7fbc1bbc
4646
path: modules/fs/fatfs
4747
groups:
4848
- fs

0 commit comments

Comments
 (0)