資源簡介
TI 官方提供的SD卡、MMC卡讀寫程序。
支持4G以下的讀寫操作,本人已經驗證,謝謝

代碼片段和文件信息
//----------------------------------------------------------------------------
//??This?file?contains?functions?that?allow?the?MSP430?device?to?access?the
//??SPI?interface.??There?are?multiple?instances?of?each?function;?
//??the?one?to?be?compiled?is?selected?by?the?system?variable
//??SPI_SER_INTF?defined?in?“hal_hardware_board.h“.
//----------------------------------------------------------------------------
//----------------------------------------------------------------------------
//??void?halSPISetup(void)
//
//??DEscriptION:
//??Configures?the?assigned?interface?to?function?as?a?SPI?port?and
//??initializes?it.
//----------------------------------------------------------------------------
//??void?halSPIWriteReg(char?addr?char?value)
//
//??DEscriptION:
//??Writes?“value“?to?a?single?configuration?register?at?address?“addr“.
//----------------------------------------------------------------------------
//??void?halSPIWriteBurstReg(char?addr?char?*buffer?char?count)
//
//??DEscriptION:
//??Writes?values?to?multiple?configuration?registers?the?first?register?being
//??at?address?“addr“.??First?data?byte?is?at?“buffer“?and?both?addr?and
//??buffer?are?incremented?sequentially?(within?the?CCxxxx?and?MSP430
//??respectively)?until?“count“?writes?have?been?performed.
//----------------------------------------------------------------------------
//??char?halSPIReadReg(char?addr)
//
//??DEscriptION:
//??Reads?a?single?configuration?register?at?address?“addr“?and?returns?the
//??value?read.
//----------------------------------------------------------------------------
//??void?halSPIReadBurstReg(char?addr?char?*buffer?char?count)
//
//??DEscriptION:
//??Reads?multiple?configuration?registers?the?first?register?being?at?address
//??“addr“.??Values?read?are?deposited?sequentially?starting?at?address
//??“buffer“?until?“count“?registers?have?been?read.
//----------------------------------------------------------------------------
//??char?halSPIReadStatus(char?addr)
//
//??DEscriptION:
//??Special?read?function?for?reading?status?registers.??Reads?status?register
//??at?register?“addr“?and?returns?the?value?read.
//----------------------------------------------------------------------------
//??void?halSPIStrobe(char?strobe)
//
//??DEscriptION:
//??Special?write?function?for?writing?to?command?strobe?registers.??Writes
//??to?the?strobe?at?address?“addr“.
//----------------------------------------------------------------------------
/*?***********************************************************
*?THIS?PROGRAM?IS?PROVIDED?“AS?IS“.?TI?MAKES?NO?WARRANTIES?OR
*?REPRESENTATIONS?EITHER?EXPRESS?IMPLIED?OR?STATUTORY?
*?INCLUDING?ANY?IMPLIED?WARRANTIES?OF?MERCHANTABILITY?FITNESS?
*?FOR?A?PARTICULAR?PURPOSE?LACK?OF?VIRUSES?ACCURACY?OR?
*?COMPLETENESS?OF?RESPONSES?RESULTS?AND?LACK?OF?NEGLIGENCE.?
*?TI?DISCLAIMS?ANY?WARRANTY?OF?title?QUIET?ENJOYMENT?QUIET?
*?POSSESSION?AND?NO
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2006-01-17?20:16??MMC_lib\
?????目錄???????????0??2006-01-17?20:54??usage_example_IAR\
?????文件?????????534??2007-12-08?20:59??MMC_lib\hal_hardware_board.h
?????文件????????4854??2008-01-23?20:53??MMC_lib\hal_MMC_hardware_board.h
?????文件???????15128??2008-01-23?20:55??MMC_lib\hal_SPI.c
?????文件????????4592??2008-01-23?20:44??MMC_lib\hal_SPI.h
?????文件???????15411??2008-01-24?20:37??MMC_lib\mmc.c
?????文件????????4407??2008-01-24?20:32??MMC_lib\MMC.h
?????文件????????5859??2008-04-01?15:41??usage_example_IAR\main.c
?????文件???????44938??2007-12-04?13:45??usage_example_IAR\MMC_Demo1.ewp
?????文件?????????163??2005-07-27?15:09??usage_example_IAR\MMC_Demo1.eww
- 上一篇:基于51單片機的GSM功能實現
- 下一篇:操作系統——思維導圖
評論
共有 條評論