Page 1 of 1

SDC LLD development questions

Posted: Wed Dec 27, 2017 4:49 am
by wiml
I'm writing a LLD for the Kinetis K64F's SDHC peripheral. I have a handful of questions about how the higher level driver expects the LLD to behave. I can make guesses about some of them but I'd rather have the info from a more authoritative source

My main question right now is the sdc_lld_sync() function, which is in the template, but it's not clear what it's for. It's not called by anything I can find. What is it supposed to do?

Re: SDC LLD development questions

Posted: Wed Dec 27, 2017 6:20 am
by Giovanni
Hi,

It is called by sdcSync() in hal_sdc.c, implementation is not mandatory, the STM32 driver does not implement it.

Giovanni

Re: SDC LLD development questions

Posted: Mon Jan 01, 2018 12:29 am
by wiml
Hmmm, OK. But if it is implemented, what is it supposed to do? Or, how do I know whether my LLD should implement it or not? Is it related to the DAT0 BUSY signal?

Re: SDC LLD development questions

Posted: Mon Jan 01, 2018 8:51 am
by Giovanni
It is supposed to wait until all driver-related activity is over. It is part of the ioblock interface, it is not necessary meaningful for an SD card.

Giovanni