⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ewl.h

📁 freescale i.mx31 BSP CE5.0全部源码
💻 H
字号:
/*------------------------------------------------------------------------------
--                                                                            --
--       This software is confidential and proprietary and may be used        --
--        only as expressly authorized by a licensing agreement from          --
--                                                                            --
--                            Hantro Products Oy.                             --
--                                                                            --
--      In the event of publication, the following notice is applicable:      --
--                                                                            --
--                   (C) COPYRIGHT 2003 HANTRO PRODUCTS OY                    --
--                            ALL RIGHTS RESERVED                             --
--                                                                            --
--          The entire notice above must be reproduced on all copies.         --
--                                                                            --
--------------------------------------------------------------------------------
--
--  Project  : 1200s
--
--  Abstract : Encoder wrapper layer
--
-------------------------------------------------------------------------------*/


#ifndef __EWL_H__
#define __EWL_H__

#include "basetype.h"

#undef PTRACE   /* undef it, just in case */
#if defined(TRACE_EWL)
#   define PTRACE(fmt, args...) printf(__FILE__ ":%d: " fmt, __LINE__ , ## args)
#elif defined(__GNUC__)
#   define PTRACE(fmt, args...) /* no trace */
#else
#   define PTRACE()
#endif

enum ewl_ret
{
    EWL_OK = 0,
    EWL_NOK = -1,
    EWL_TIMEOUT = 1
};

extern u32 EWL_ReadReg(u32 offset);
extern void EWL_WriteReg(u32 offset, u32 val);

extern i32 EWL_Init(void);
extern i32 EWL_Release(void);

extern u32 *EWL_MallocLinear(u32 size);
extern void EWL_FreeLinear(u32 * pVirt);
extern u32 EWL_Virt2Bus(u32 * pVirt);

extern i32 EWL_PostHwRdy(void);
extern i32 EWL_WaitHwRdy(void);
extern i32 EWL_ResetHwRdy(void);

extern void EWL_IRQ_Enable(void);
extern void EWL_IRQ_Disable(void);

#endif /*__EWL_H__*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -