glue_fur.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:3k
- /*******************************************************************************
- * Copyright(c) Philips Consumer Electronics B.V. 2001
- * The attached material and the information contained therein is proprietary
- * to Philips and is issued only under strict confidentiality arrangements.
- * It shall not be used, reproduced, copied in whole or in part, adapted,
- * modified, or disseminated without a written license of Philips.
- * It must be returned to Philips upon its first request.
- *
- * Project: SA-MP ( Super Audio Media Player )
- * File %name: glue_fur.h %
- * %version: 4 %
- * %date_modified: Mon Nov 04 09:40:51 2002 %
- * %derived_by: klerxm %
- * Creation date: Mon Feb 18 10:48:49 2002
- * First author: klerxm
- *
- * Advanced Systems and Applications Lab - Eindhoven
- *
- * Continuus %full_filespec: glue_fur.h~4:incl:1 %
- *
- * Description: Header file of required functions for Furore2 Memory Access
- *
- * Change history:
- *
- * Rev Date Who Comments
- * ---- ---------- -------- -----------------------------------------------------
- * 1 2002-03-12 kokh Created first version
- * 2 2002-04-15 klerxm Changed component prefix in all function names and
- * removed FUR_Read32, FUR_Write32 an FUR_ReadBlock (CRPR251)
- * 3 2002-06-07 klerxm Added 'extern "C"'
- * 4 2002-11-04 klerxm See CRPR433: Use separate access routines for registers
- * and memory
- *
- *******************************************************************************/
- #ifndef _GLUE_FUR_H
- #define _GLUE_FUR_H
- /*******************************************************************************
- * Include Files
- *******************************************************************************/
- #include "playcoresampsamp_gen.h"
- #include <embedded.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- /*******************************************************************************
- * Macro Definitions
- *******************************************************************************/
- #define SACD_Read16(addr) (*((SAMP(UInt16)*)(MK_FP(0x1000,addr))))
- #define SACD_Write16(addr,val) (*((SAMP(UInt16)*)(MK_FP(0x1000,addr))) = (val))
- /*******************************************************************************
- * Type Definitions
- *******************************************************************************/
- /*******************************************************************************
- * Functions Prototypes
- *******************************************************************************/
- void SAMP(FUR_WriteReg)( SAMP(UInt32) addr, SAMP(UInt16) val );
- void SAMP(FUR_WriteMem)( SAMP(UInt32) addr, SAMP(UInt16) val );
- SAMP(UInt16) SAMP(FUR_ReadReg)( SAMP(UInt32) addr );
- SAMP(UInt16) SAMP(FUR_ReadMem)( SAMP(UInt32) addr );
- void SAMP(FUR_IhEnter)( void );
- void SAMP(FUR_IhExit)( void );
- #ifdef __cplusplus
- }
- #endif
- #endif /* _GLUE_FUR_H */
- /*******************************************************************************
- * End of File
- k*******************************************************************************/