I was looking over the changes in ChibiOS and found the following.
http://sourceforge.net/p/chibios/bugs/458/
This produces the diff:
https://github.com/ChibiOS/ChibiOS-RT/c ... eaf7823a4d
The same constellation of DCTL, sdc_lld_prepare.. and sdc_lld_wait_transaction_end is present in
sdc_lld_write_aligned() and sdc_lld_read_aligned() but the bugfix only changed one of them:
sdc_lld_write_aligned:
Code: Select all
sdc_lld_prepare_write()
SDIO->DCTRL = ...;
sdc_lld_wait_transaction_end()
sdc_lld_read_aligned:
Code: Select all
SDIO->DCTRL = ...;
sdc_lld_prepare_read()
sdc_lld_wait_transaction_end()
I wonder whether this is correct that way. Seems non-symmetric now.