10 lines
256 B
C
10 lines
256 B
C
|
|
#define CSel latd.2 //chip select line
|
||
|
|
#define SD_LED latd.1
|
||
|
|
|
||
|
|
typedef unsigned long LBA;
|
||
|
|
|
||
|
|
void sd_init(void);
|
||
|
|
int sd_initMedia(void);
|
||
|
|
int sd_writeSector(LBA,char *,char *);
|
||
|
|
int sd_readSector(LBA, char *,char *);
|
||
|
|
int sd_sendCmd(unsigned char,LBA);
|