📄 l2_mmc.c
字号:
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
L2_MMC.C
Abstract:
Module related to L2 MMC functions
Environment:
Keil C51 Compiler
Revision History:
04/10/2002 Leeada created
--*/
//=============================================================================
//Header file
//=============================================================================
#include "general.h"
//=============================================================================
//Symbol
//=============================================================================
//-----------------------------------------------------------------------------
//Constant
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//Variable
//-----------------------------------------------------------------------------
//=============================================================================
//Program
//=============================================================================
#if (MMC)
//-----------------------------------------------------------------------------
//L2_MMCInit
//-----------------------------------------------------------------------------
/*
routine description:
MMC interface initialization
arguments:
None
return value:
None
*/
void L2_MMCInit(void) USING_0
{
XBYTE[0x2450] = 0x03; // MMC reset, CRC reset
XBYTE[0x2457] = 0xff; // Rsp timer setting
XBYTE[0x2458] = 0x08; // CRC timer setting
XBYTE[0x2451] = 0x71; // enable Rsp timer & CRC timer
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -