?? sd.h
字號:
#ifndef SD_h
#define SD_h
//------------------------------------------------------------
// Port define
//-------------------------------------------------------------
#define SD_Disable() PORTB_Bit0=1
#define SD_Enable() PORTB_Bit0=0
//------------------------------------------------------------
// Error define
//-------------------------------------------------------------
#define INIT_CMD0_ERROR 0x01
#define INIT_CMD1_ERROR 0x02
#define WRITE_BLOCK_ERROR 0x03
#define READ_BLOCK_ERROR 0x04
void spi_init(void);
unsigned char SD_Init(void);
unsigned char SD_Read_Block(unsigned long addr);
unsigned char Write_Command_SD(unsigned char cmd,unsigned long arg,unsigned char crc7);
extern unsigned char SD_Buffer[];
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -