Use of FatFS with modm's block device #893
Unanswered
ludekcizinsky
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You can use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to integrate FatFS with modm's block device driver. I was searching through examples, but only found this one. Looking at the docs of FatFS, you need to implement the 'Media Access Interface' layer. I am wondering how to do this, for instance for
disk_read
function I would like to write something like:The problem, however, is that
storageDevice.read
is a resumable function and as such I would need to call it usingPT_CALL
according to the modm's docs. I have read in one of the dicussions, that the above mentioned driver was written in such a way that it could be integrated with the FatFs, so I would be grateful for an example showing for instance just how to integrate the read function since the rest will be similar.Last but not the least, I have also seen in modm's todos to replace
modm::fatfs
with ufat. I wonder what is the reason for replacing FatFs with ufat? From the initial inspection of ufat, it seems like it is lighter as well as it is easier to integrate?Thank you for your answers in advance :}
Beta Was this translation helpful? Give feedback.
All reactions