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

fatfs: enable writing functions #5

Merged
merged 1 commit into from
Jun 20, 2021
Merged

fatfs: enable writing functions #5

merged 1 commit into from
Jun 20, 2021

Conversation

sago35
Copy link
Member

@sago35 sago35 commented May 31, 2021

This PR enables the writing function.
This change will allow mkdir, rm, create, etc. to work in drivers/examples/sdcard/tinyfs.

https://github.com/tinygo-org/drivers/tree/dev/examples/sdcard/tinyfs

@sago35
Copy link
Member Author

sago35 commented May 31, 2021

In order to use this change from drivers/examples/sdcard/tinyfs, the following files must also be changed
Once the SHA1 hash is determined, I will create a PR to update it.

https://github.com/tinygo-org/drivers/blob/dev/go.mod

@bgould
Copy link
Member

bgould commented Jun 20, 2021

I believe the primary reason that I didn't enable writing for fatfs was because the flash driver would need to do some sort of more advanced buffering than it is currently doing, and fatfs is not good for flash devices anyhow without some sort of wear-leveling handled in software. I suspect/believe that this consideration does not apply to SD cards, so if this PR makes it work then I would be in favor of it.

@bgould
Copy link
Member

bgould commented Jun 20, 2021

I tried this out on wioterminal using the SD card example from the drivers repository, and it seems to work really well. 👍

@bgould bgould merged commit 5b00ebc into dev Jun 20, 2021
@deadprogram deadprogram deleted the enable-writing-functions branch June 23, 2021 16:33
@bgould bgould mentioned this pull request Dec 8, 2023
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