1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-01 15:37:31 +02:00

tornado/fw/mmc-hw.c (mmc_recv): make sure to send 0xff when receiving

This commit is contained in:
Werner Almesberger 2012-12-05 10:58:26 -03:00
parent c9e36f90a2
commit d5a4ffe139

View File

@ -74,6 +74,7 @@ uint8_t mmc_recv(void)
{ {
uint8_t i, v = 0; uint8_t i, v = 0;
SET(MMC_MOSI);
for (i = 0; i != 8; i++) { for (i = 0; i != 8; i++) {
SET(MMC_CLK); SET(MMC_CLK);
v = (v << 1) | PIN(MMC_MISO); v = (v << 1) | PIN(MMC_MISO);