📄 mcp_ctl.h
字号:
/********************************************************************************/
/* */
/* Copyright (C) SEIKO EPSON CORP. 2000 */
/* */
/* File name : mcp_ctl.h */
/* This is Samsung MCP(16bitnand) media control library header file. */
/* */
/* Revision history */
/* 2004.03.01 David.ji start */
/* */
/********************************************************************************/
/********************************************************************************/
/* The tab size of this file is 4. */
/********************************************************************************/
#ifndef __MCP_CONTROL_LIBRARY__
#define __MCP_CONTROL_LIBRARY__
#include "smt_ctl.h"
#define PAT_1 0x0
#define PAT_2 0x1
#define PAT_3 0x2
#ifdef L05DMT
#define MCP_R_ALE (((volatile union SMT_BITCTL *)SMT_R_P2PORT)->stBit.b5)
#define MCP_R_CLE (((volatile union SMT_BITCTL *)SMT_R_P2PORT)->stBit.b4)
#define MCP_R_RB (((volatile union SMT_BITCTL *)SMT_R_PDPORT)->stBit.b5)
#define MCP_R_WP (((volatile union SMT_BITCTL *)SMT_R_P4PORT)->stBit.b0)
#define MCP_R_DATAIO ((volatile unsigned short *)SMT_R_AREA15) //L05Dmt
#endif
/********************************************************/
/* PROTOTYPE */
/********************************************************/
extern char mcpCardDetect(void);
extern char mcpWriteProtect(void);
extern int mcpMediaReset(void);
extern int mcpStatusRead(unsigned char *);
extern int mcpIdRead(unsigned char *, unsigned char *);
extern int mcpBlockErase(unsigned long);
extern int mcpPageRead(unsigned char, unsigned long, unsigned long, char *);
extern int mcpPageProgram(unsigned long, unsigned long, const char *, unsigned char);
extern int mcpProlixProgram(unsigned long, unsigned long, const char *);
extern int mcpReadyCheck(unsigned long);
extern int mcpEraseChk(void);
#endif //__MCP_CONTROL_LIBRARY__
/***** End of file *****/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -