Ai
1 Star 0 Fork 4

eleluq1234/TCP协议栈

forked from 邵温财/TCP协议栈 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
diskio.h 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
邵温财 提交于 2021-06-29 14:09 +08:00 . 调试完成的简单版文件系统
#ifndef _DISKIF
#define _DISKIF
#include "integer.h"
typedef unsigned char DSTATUS;
typedef unsigned char DRESULT;
DSTATUS disk_initialize (void);
DSTATUS disk_shutdown (void);
DSTATUS disk_status (void);
DRESULT disk_read (BYTE*, DWORD, BYTE);
DRESULT disk_write (const BYTE*, DWORD, BYTE);
DRESULT disk_ioctl (BYTE, void*);
#define RES_OK 0 /* Successful */
#define RES_ERROR 1 /* R/W Error */
#define RES_WRPRT 2 /* Write Protected */
#define RES_NOTRDY 3 /* Not Ready */
#define RES_PARERR 4 /* Invalid Parameter */
/* Disk Status Bits (DSTATUS) */
#define STA_NOINIT 0x01 /* Drive not initialized */
#define STA_NODISK 0x02 /* No medium in the drive */
#define STA_PROTECT 0x04 /* Write protected */
/* Command code for disk_ioctrl() */
#define GET_SECTORS 1
#define PUT_IDLE_STATE 2
#define MMC_GET_CSD 10
#define MMC_GET_CID 11
#define MMC_GET_OCR 12
#define ATA_GET_REV 20
#define ATA_GET_MODEL 21
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/eleluq1234/tcp-stack.git
git@gitee.com:eleluq1234/tcp-stack.git
eleluq1234
tcp-stack
TCP协议栈
master

搜索帮助