Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add FATFS_TINY menuconfig item #640

Closed

Conversation

edmund-huber
Copy link
Contributor

Enabling _FS_TINY saves 4096 bytes * max_files of heap. This makes a big difference for us!

@@ -105,4 +105,19 @@ config FATFS_MAX_LFN
help
Maximum long filename length. Can be reduced to save RAM.

choice FATFS_TINY
prompt "Use per-file caches"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch noticing this option!

Could you please make this a "bool" option CONFIG_FATFS_PER_FILE_CACHES rather than a "prompt"? Can do the necessary inverting of logic (tiny mode == !per file caches) in the header file if necessary.

@projectgus
Copy link
Contributor

@edmund-huber are you still working on this? Are you able to make the requested change?

@edmund-huber
Copy link
Contributor Author

Thanks for checking. I am on vacation abroad currently and don't have the means to make or test any change. I'll be back later this week and can do it then.

@projectgus
Copy link
Contributor

Support for FATFS_TINY has been added in 07c44d7 (as "Use separate cache for each file"). Thanks for bringing this feature to our attention, @edmund-huber .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants