l2_mmc.c

来自「凌阳MP3 spSPCA755yuanma」· C语言 代码 · 共 69 行

C
69
字号
/*++

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 + =
减小字号Ctrl + -
显示快捷键?