mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-22 13:44:59 +02:00
tornado/fw/mmc-hw.c (mmc_recv): make sure to send 0xff when receiving
This commit is contained in:
parent
c9e36f90a2
commit
d5a4ffe139
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user