代码搜索结果
找到约 10,000 项符合
SD Card 的代码
sd.h
#include "stm32l1xx.h"
#ifndef _SD_H_
#define _SD_H_
/*命令宏*/
#define CMD0 (0x40+0) /* GO_IDLE_STATE */
#define CMD1 (0x40+1) /* SEND_OP_COND */
#define ACMD41 (0x40+41) /* SEND_OP_COND */
#de
sd.__i
-c --cpu Cortex-M3 -g -O0 --apcs=interwork -I.\lib\inc -I.\CMSIS -I.\usr -I.\lib\src -I.\VS1003 -I.\SD -I.\MP3 -I C:\Keil\ARM\RV31\Inc -I C:\Keil\ARM\CMSIS\Include -I C:\Keil\ARM\Inc\ST\STM32L1xx -o "
sd.d
sd.o: SD\sd.c
sd.o: SD\sd.h
sd.o: .\CMSIS\stm32l1xx.h
sd.o: .\CMSIS\core_cm3.h
sd.o: C:\Keil\ARM\RV31\Inc\stdint.h
sd.o: .\CMSIS\core_cmInstr.h
sd.o: .\CMSIS\core_cmFunc.h
sd.o: .\usr\system_st
sd.lst
C51 COMPILER V8.05a SD 06/15/2011 17:32:42 PAGE 1
C51 COMPILER V8.05a, COMPILATION OF MODULE SD
OBJECT MODULE PLACED IN sd.
sd.__i
"sd.c" BROWSE DEBUG OBJECTEXTEND TABS (5)
sd.c
#include "STC12C5A60S2.H"
#include "sd.h"
void delay(unsigned int time)
{
while(time--);
}
//变量定义
//--------------------------------------------------------------
unsigned char is_init;
sd.h
#ifndef _<mark>sd</mark>_
#define _<mark>sd</mark>_
sbit <mark>SD</mark>_SCL=P1^7; //<mark>SD</mark>卡同步时钟 输入
sbit <mark>SD</mark>_SI =P1^5; //<mark>SD</mark>卡同步数据 输入
sbit <mark>SD</mark>_CS =P1^4; //<mark>SD</mark>卡片选 输入
sbit <mark>SD</mark>_SO =P1^6; //<mark>SD</mark>卡同步数据 输出
#define DELAY_TIME 2000 //<mark>SD</mark>卡的复位与初始化 ...