📄 hw_gpio_api.h
字号:
/* set tabstop=4 */
/********************************************************************************
* *
* Copyright(C) 2004 Penta-Micro *
* *
* ALL RIGHT RESERVED *
* *
* This software is the property of Penta-Micro and is furnished under *
* license by Penta-Micro. This software may be used only in accordance *
* with the terms of said license. This copyright notice may not be *
* removed, modified or obliterated without the prior written permission *
* of Penta-Micro. *
* *
* This software may not be copyed, transmitted, provided to or otherwise *
* made available to any other person, company, corporation or other entity *
* except as specified in the terms of said license. *
* *
* No right, title, ownership or other interest in the software is hereby *
* granted or transferred. *
* *
* The information contained herein is subject to change without notice and *
* should not be construed as a commitment by Penta-Micro. *
* *
********************************************************************************
MODULE NAME: HW_GPIO_API.H
REVISION HISTORY:
Date Ver Name Description
---------- --- --------------------- -----------------------------------------
12/13/2004 1.0 jigwan Kang(xchannel) Created
...............................................................................
DESCRIPTION:
This Module contains definition for PPC405 GPIO function.
...............................................................................
*/
#ifndef _HW_GPIO_API_H
#define _HW_GPIO_API_H
/** ************************************************************************* **
** includes
** ************************************************************************* **/
#include "typedef.h"
/** ************************************************************************* **
** defines
** ************************************************************************* **/
#define SPEECH_MASK 0xe0000000 /* <-- 3bit access */
#define SPEECH_CH1 0x00000000
#define SPEECH_CH2 0x80000000
#define SPEECH_CH3 0x40000000
#define SPEECH_CH4 0xc0000000
#define SPEECH_EN 0x20000000
#define SPOT_MASK 0x00000030 /* <-- 2bit access */
#define SPOT_CH1 0x00000000
#define SPOT_CH2 0x00000020
#define SPOT_CH3 0x00000010
#define SPOT_CH4 0x00000030
/** ************************************************************************* **
** typedefs
** ************************************************************************* **/
/** ************************************************************************* **
** function prototypes
** ************************************************************************* **/
RETURN ppc405_gpio_open(void);
void ppc405_gpio_close(void);
VIDEO_MODE get_video_mode(void);
RETURN set_live_audio_ch(UNS32 arg);
RETURN set_spot_out_ch(UNS32 arg);
RETURN set_sensor_out_ch(UNS32 arg, BOOL normal_open);
RETURN ppc405_gpio_in(UNS32 *arg);
RETURN ppc405_gpio_ioctl(UNS32 cmd, UNS32 *arg);
void ppc405_gpio_at2041_reset(void);
#endif /* _HW_GPIO_API_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -