亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sd.h

?? sd卡驅動程序來源于菲斯卡爾官方網站‘ 8位單片機
?? H
字號:
/******************************************************************************
*                                                  
*  (c) copyright Freescale Semiconductor 2008
*  ALL RIGHTS RESERVED
*
*  File Name:   SD.h
*                                                                          
*  Description: Header File for SD using SPI Driver 
*                                                                                     
*  Assembler:   Codewarrior for HC(S)08 V6.1
*                                            
*  Version:     1.0                                                         
*                                                                                                                                                         
*  Author:      Jose Ruiz (SSE Americas)
*                                                                                       
*  Location:    Guadalajara,Mexico                                              
*                                                                                                                  
*                                                  
* UPDATED HISTORY:
*
* REV   YYYY.MM.DD  AUTHOR        DESCRIPTION OF CHANGE
* ---   ----------  ------        --------------------- 
* 1.0   2008.02.18  Jose Ruiz     Initial version
* 
******************************************************************************/                                                                        
/* Freescale  is  not  obligated  to  provide  any  support, upgrades or new */
/* releases  of  the Software. Freescale may make changes to the Software at */
/* any time, without any obligation to notify or provide updated versions of */
/* the  Software  to you. Freescale expressly disclaims any warranty for the */
/* Software.  The  Software is provided as is, without warranty of any kind, */
/* either  express  or  implied,  including, without limitation, the implied */
/* warranties  of  merchantability,  fitness  for  a  particular purpose, or */
/* non-infringement.  You  assume  the entire risk arising out of the use or */
/* performance of the Software, or any systems you design using the software */
/* (if  any).  Nothing  may  be construed as a warranty or representation by */
/* Freescale  that  the  Software  or  any derivative work developed with or */
/* incorporating  the  Software  will  be  free  from  infringement  of  the */
/* intellectual property rights of third parties. In no event will Freescale */
/* be  liable,  whether in contract, tort, or otherwise, for any incidental, */
/* special,  indirect, consequential or punitive damages, including, but not */
/* limited  to,  damages  for  any loss of use, loss of time, inconvenience, */
/* commercial loss, or lost profits, savings, or revenues to the full extent */
/* such  may be disclaimed by law. The Software is not fault tolerant and is */
/* not  designed,  manufactured  or  intended by Freescale for incorporation */
/* into  products intended for use or resale in on-line control equipment in */
/* hazardous, dangerous to life or potentially life-threatening environments */
/* requiring  fail-safe  performance,  such  as  in the operation of nuclear */
/* facilities,  aircraft  navigation  or  communication systems, air traffic */
/* control,  direct  life  support machines or weapons systems, in which the */
/* failure  of  products  could  lead  directly to death, personal injury or */
/* severe  physical  or  environmental  damage  (High  Risk Activities). You */
/* specifically  represent and warrant that you will not use the Software or */
/* any  derivative  work of the Software for High Risk Activities.           */
/* Freescale  and the Freescale logos are registered trademarks of Freescale */
/* Semiconductor Inc.                                                        */ 
/*****************************************************************************/


#ifndef __SD__
#define __SD__

/* Includes */
#include "FslTypes.h"

/************************* HIL ****************************/
/**********************************************************/
/* Includes */
#include "SPI.h"     // SPI Driver

/* HIL */
#define InitSPI         SPI_Init
#define ReadSPIByte     SPI_Receive_byte
#define WriteSPIByte    SPI_Send_byte
#define HighSpeedSPI    SPI_High_rate
/**********************************************************/
/**********************************************************/

/* User definitions */
#define SD_BLOCK_512     
#define SD_WAIT_CYCLES 10

/* SD card Inserted detection Pin */
#define SD_PRESENT      PTBD_PTBD7
#define _SD_PRESENT     PTBDD_PTBDD7

/* Error Codes */
enum
{
	OK,
	COMMAND_FAILS,
	INIT_FAILS,
	WRITE_COMMAND_FAILS,
	WRITE_DATA_FAILS,
	READ_COMMAND_FAILS,
	READ_DATA_FAILS,
	NO_SD_CARD
};

/* Status */
enum
{
    SD_OK,
    SD_IDLE
};

/* TypeDefs */
typedef union
{
	UINT8 bytes[4];
	UINT32 lword;		
}T32_8;

/* Stardar Definitions */
#ifdef  SD_BLOCK_512
    #define SD_BLOCK_SIZE   (0x00000200)
    #define SD_BLOCK_SHIFT  (9)
    #define BLOCK_SIZE      512
#endif


/* Static Definitions */
/******************************* SD Card Standard Commands **********************************/
enum{
  SD_CMD0,  /* Resets the SD Memory Card */
  SD_CMD1,  /* Sends host capacity support information and activates the card's 
               initialization process. HCS is effective when card receives SEND_IF_COND 
               command. Reserved bits shall be set to '0'. */
  SD_CMD2,
  SD_CMD3,
  SD_CMD4,
  SD_CMD5,  
  SD_CMD6,  /* Checks switchable function (mode 0) and switches card function (mode 1).*/
  SD_CMD7,
  SD_CMD8,  /* Sends SD Memory Card interface condition that includes host supply voltage 
               information and asks the accessed card whether card can operate in supplied 
               voltage range. Reserved bits shall be set to '0'.*/
  SD_CMD9,  /* Asks the selected card to send its cardspecific data (CSD)*/
  SD_CMD10, /* Asks the selected card to send its card identification (CID) */
  SD_CMD11,
  SD_CMD12, /* Forces the card to stop transmission in Multiple Block Read Operation */
  SD_CMD13, /* Asks the selected card to send its status register. */
  SD_CMD14,
  SD_CMD15,
  SD_CMD16, /* Sets a block length (in bytes) for all following block commands (read and
               write) of a Standard Capacity Card. Block length of the read and write 
               commands are fixed to 512 bytes in a High Capacity Card. The length of 
               LOCK_UNLOCK command is set by this command in both capacity cards.*/
  SD_CMD17, /* Reads a block of the size selected by the SET_BLOCKLEN command.*/
  SD_CMD18, /* Continuously transfers data blocks from card to host until interrupted by a
               STOP_TRANSMISSION command.*/
  SD_CMD19, 
  SD_CMD20,
  SD_CMD21,
  SD_CMD22,
  SD_CMD23,
  SD_CMD24, /* Writes a block of the size selected by the SET_BLOCKLEN command. */
  SD_CMD25, /* Continuously writes blocks of data until 扴top Tran

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品色婷婷久久58| 欧美二区三区91| 激情文学综合插| 视频一区视频二区中文字幕| 一区二区三区日韩欧美精品| 综合色天天鬼久久鬼色| 国产精品午夜在线| 欧美国产激情一区二区三区蜜月| 日韩三级电影网址| 日韩精品最新网址| 久久午夜国产精品| 国产丝袜欧美中文另类| 欧美—级在线免费片| 国产情人综合久久777777| 国产情人综合久久777777| 久久久久久久一区| 国产精品乱码妇女bbbb| 国产精品视频yy9299一区| 中文成人综合网| 亚洲精品国产精华液| 一个色在线综合| 偷窥国产亚洲免费视频| 蜜桃精品在线观看| 国产精品1024久久| 91免费观看视频在线| 欧美性生活影院| 欧美一区二区三区四区高清| 精品国产免费视频| 国产精品丝袜一区| 亚洲国产精品综合小说图片区| 天堂一区二区在线| 国产夫妻精品视频| 91久久精品一区二区三| 日韩欧美久久久| 国产精品嫩草影院av蜜臀| 亚洲三级电影网站| 另类的小说在线视频另类成人小视频在线 | 亚洲一区在线观看免费 | 依依成人精品视频| 亚洲午夜激情av| 国产在线精品免费| 色老汉一区二区三区| 日韩一区二区三区精品视频| 中文字幕乱码日本亚洲一区二区 | 国产麻豆欧美日韩一区| 97精品久久久午夜一区二区三区| 欧美三级欧美一级| 国产欧美日韩三级| 日韩精品欧美精品| 97久久人人超碰| 久久亚洲精品小早川怜子| 亚洲黄色性网站| 国产精品一区二区你懂的| 欧美手机在线视频| 国产精品嫩草影院com| 美女任你摸久久| 91影院在线观看| 2021国产精品久久精品| 午夜精品免费在线| 色欧美88888久久久久久影院| 久久综合九色综合97婷婷| 亚洲国产一二三| www.亚洲激情.com| 久久精品这里都是精品| 久久精品国产色蜜蜜麻豆| 在线播放/欧美激情| 亚洲综合色在线| 99精品1区2区| 国产精品大尺度| 成人午夜看片网址| 久久久91精品国产一区二区精品| 免费一级欧美片在线观看| 欧美精品三级在线观看| 亚洲色图色小说| www.欧美日韩| 中文字幕在线不卡视频| 成人午夜激情片| 国产精品久久久久久亚洲毛片| 国产一区不卡精品| 国产亚洲精品资源在线26u| 国产一区二区看久久| 337p粉嫩大胆噜噜噜噜噜91av | 久久久久久久国产精品影院| 麻豆国产一区二区| 精品少妇一区二区三区视频免付费| 日韩激情视频在线观看| 日韩一区二区精品在线观看| 日韩精品一级中文字幕精品视频免费观看| 欧美性受xxxx黑人xyx性爽| 天天色图综合网| 欧美一二三四区在线| 精品一二三四区| 久久综合久久综合久久综合| 国产91精品一区二区麻豆亚洲| 久久久久国色av免费看影院| 国产乱码精品一区二区三区五月婷| 久久青草国产手机看片福利盒子| 国产一区美女在线| 中文字幕一区二区在线观看| 色婷婷av一区二区三区gif | 午夜精品久久久久久| 91福利国产成人精品照片| 亚洲高清免费观看| 日韩女优电影在线观看| 99久久久免费精品国产一区二区 | 91精品在线一区二区| 日韩精品一二三| 久久久久久久久免费| 色偷偷一区二区三区| 免费成人在线视频观看| 国产女人18毛片水真多成人如厕| 色综合久久久网| 日av在线不卡| 中文字幕va一区二区三区| 欧美日韩免费高清一区色橹橹| 青青草精品视频| 国产精品国产三级国产有无不卡 | 香蕉成人伊视频在线观看| 久久久久久久久久电影| 欧美午夜片在线观看| 国产精品一区二区免费不卡 | 日韩西西人体444www| 成人美女在线观看| 日韩电影网1区2区| 中文字幕亚洲不卡| 欧美一二三区在线| 在线视频国内自拍亚洲视频| 国产精品正在播放| 无吗不卡中文字幕| 一区二区在线观看视频 | 91丝袜美腿高跟国产极品老师| 日韩精品午夜视频| 一区二区三区在线观看网站| 欧美精品一区二区三区蜜桃 | 欧美一二三在线| 在线观看亚洲精品视频| 成人免费高清在线| 久久精品国产在热久久| 亚洲国产wwwccc36天堂| 国产精品盗摄一区二区三区| 久久久青草青青国产亚洲免观| 欧美日韩精品福利| 99r精品视频| 成人免费av在线| 国产成人免费视频| 久久av中文字幕片| 美女诱惑一区二区| 日日摸夜夜添夜夜添国产精品| 一级精品视频在线观看宜春院 | 蜜乳av一区二区三区| 亚洲午夜久久久久久久久久久| 亚洲人成小说网站色在线| 亚洲国产精品黑人久久久| 欧美激情综合五月色丁香小说| 久久综合国产精品| 精品福利av导航| 精品精品国产高清一毛片一天堂| 欧美一卡二卡三卡| 91精品国模一区二区三区| 91精品久久久久久蜜臀| 欧美一区二区三区精品| 欧美一级精品大片| 精品理论电影在线| 欧美变态tickle挠乳网站| 日韩精品一区二区在线观看| 日韩欧美亚洲一区二区| 欧美白人最猛性xxxxx69交| 国产日韩视频一区二区三区| 欧美国产禁国产网站cc| 国产精品国产三级国产aⅴ中文| 国产精品久久精品日日| 亚洲欧美一区二区三区国产精品| 一区二区欧美国产| 日本系列欧美系列| 国产一区在线观看麻豆| 成人开心网精品视频| 欧洲精品视频在线观看| 日韩欧美国产综合一区 | 日韩欧美在线123| 久久午夜色播影院免费高清| 国产精品久久久久天堂| 天天影视色香欲综合网老头| 狠狠狠色丁香婷婷综合久久五月| 粉嫩av一区二区三区在线播放| 99精品视频在线观看免费| 欧美在线视频全部完| 欧美二区三区的天堂| 国产午夜精品美女毛片视频| 欧美日韩你懂的| 久久久精品欧美丰满| 国产精品另类一区| 免费高清不卡av| 国产大陆a不卡| 99r精品视频| 欧美大片一区二区三区| 国产欧美日韩一区二区三区在线观看| 中文字幕+乱码+中文字幕一区| 亚洲乱码精品一二三四区日韩在线 | 亚洲小说春色综合另类电影| 婷婷开心久久网|