⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sd.h

📁 An complete pmp solution for mattel juicebox player. Using crossworks for arm.
💻 H
字号:
#ifndef __SD_H
#define __SD_H
#include "diskio.h"


/*---------------------------------------*/
/* Prototypes for disk control functions */

DSTATUS wDiskInitialize ();
DSTATUS wDiskShutdown ();
DSTATUS wDiskStatus ();
DRESULT wDiskRead (BYTE*, DWORD, BYTE);
#ifndef	_READONLY
DRESULT wDiskWrite (const BYTE*, DWORD, BYTE);
#endif
DRESULT wDiskIOctl (BYTE, void*);
void	wDiskTimerProc ();
DWORD wGetTime ();
//-------------------------------------------------
/* R/W one byte over SPI */
u08 wMMCByte(u08 x);

/* Send a command to the MMC */
u08 wMMCCommand(u08 command, u32 arg);

/* Initialise SIO */
void wSIOInit();


/* Copy a single 512 byte sector from 'start' to MMC 'sector' */
u08 wMMCWriteSector(u32 sector, u08* buffer);
u08 wMMCReadSector(u32 sector, u08* buffer);

/* Init the MMC */
void wMMCInit();

/* Reset the MMC */
u08 wMMCReset();

/* Display card info */
void wMMCDumpCID();


void wMMCDMARead();
void wMMCDMAWrite();
void wSIODMAInit();


#define cs_high() { PORT_CS|=(1 << CS); }
#define cs_low() { PORT_CS&=~(1 << CS); }

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -