Код: Выделить всё
static BYTE send_cmd (
BYTE cmd, /* 1st byte (Start + Index) */
DWORD arg /* Argument (32 bits) */
)
{
BYTE n, res;
if (cmd & 0x80) { /* ACMD<n> is the command sequense of CMD55-CMD<n> */
cmd &= 0x7F;
res = send_cmd(CMD55, 0);
if (res > 1) return res;
}
/* Select the card */
CS_HIGH();
rcv_spi();
CS_LOW();
rcv_spi();Код: Выделить всё
if (cmd & 0x80) { /* ACMD<n> is the command sequense of CMD55-CMD<n> */Код: Выделить всё
res = send_cmd(CMD55, 0);


