www.pudn.com > s3c2443_test_code.zip > DRAM.h


//************************************************  
// NAME    : DRAM.h 
// DESC	   : library functions 
// History : 2005. 9 .23  ver 0.0  
//************************************************ 
 
#ifndef __DRAM_h__ 
#define __DRAM_h__ 
 
#ifdef __cplusplus 
extern "C" { 
#endif 
 
 
 
#define	SetREFRESH( REFCYC)	rREFRESH =	(unsigned)(REFCYC); 
#define	SetPARAMETER( TRAS, TRC, TRCD, TRP, TCL)							\ 
{																		\ 
	rBANKCON2	=	(rBANKCON2&~(0xff00ff))|					\ 
						((TRAS)<<20)|((TRC)<<16)|(TCL<<4)|	\ 
						((TRCD)<<2)|((TRP)<<0);	\ 
} 
 
#define	SetPREFRESH( REFCYC) 
#define	SetPPARAMETER( TRAS, TRC, TRCD, TRP, TCL) 
 
void PreChangeSDRAMParameter(void); 
void ChangeSDRAMParameter(unsigned int); 
 
#ifdef __cplusplus 
} 
#endif 
 
#endif  //__DRAM_h__