prog.c: In function ‘SD_readSingleBlock’:
prog.c:12:1: warning: implicit declaration of function ‘SD_sendCommand’ [-Wimplicit-function-declaration]
response = SD_sendCommand(READ_SINGLE_BLOCK, startBlock<<9); //read a Block command
^
prog.c:12:27: error: ‘READ_SINGLE_BLOCK’ undeclared (first use in this function)
response = SD_sendCommand(READ_SINGLE_BLOCK, startBlock<<9); //read a Block command
^
prog.c:12:27: note: each undeclared identifier is reported only once for each function it appears in
prog.c:17:1: error: ‘SD_CS_ASSERT’ undeclared (first use in this function)
SD_CS_ASSERT;
^
prog.c:19:1: warning: implicit declaration of function ‘SPI_receive’ [-Wimplicit-function-declaration]
while(SPI_receive() != 0xfe) //wait for start block token 0xfe (0x11111110)
^
prog.c:20:24: error: ‘SD_CS_DEASSERT’ undeclared (first use in this function)
if(retry++ > 0xfffe){SD_CS_DEASSERT; return 1;} //return if time-out
^
prog.c:23:3: error: ‘buffer’ undeclared (first use in this function)
buffer[i] = SPI_receive();
^