sdmmc.c: Corrected OCR register value on SD init to the one from Process9

Thanks @profi200 !
This commit is contained in:
d0k3 2018-08-27 00:26:46 +02:00
parent 31fd7f88e9
commit 14c97a7f6b

View File

@ -482,7 +482,7 @@ int SD_Init()
do
{
sdmmc_send_command(&handleSD,0x10437,handleSD.initarg << 0x10);
sdmmc_send_command(&handleSD,0x10769,0x00FF8000 | temp);
sdmmc_send_command(&handleSD,0x10769,0x10100000 | temp); // Allow 150mA, 3.2-3.3V (from Process9)
temp2 = 1;
} while ( !(handleSD.error & 1) );
}