📄 fmtuner_gpio.h
字号:
//-----------------------------------------------------------------------------
// (C) Copyright 2003 Philips Semiconductors, All rights reserved
//
// This source code and any compilation or derivative thereof is the sole
// property of Philips Corporation and is provided pursuant to a Software
// License Agreement. This code is the proprietary information of Philips
// Corporation and is confidential in nature. Its use and dissemination by
// any party other than Philips Corporation is strictly limited by the
// confidential information provisions of the Agreement referenced above.
//-----------------------------------------------------------------------------
// FILE NAME: fmTuner_GPIO.h
//
// VERSION: <1.00.00.0000>
//
// DESCRIPTION: This head file contains prototype of those standard interface functions called by appmanager
//
// DOCUMENT REF: SZLAB/PRS0003
//
// NOTES: <File notes>
//-----------------------------------------------------------------------------
//
#ifndef _FM_TUNER_GPIO_H_
#define _FM_TUNER_GPIO_H_
//-----------------------------------------------------------------------------
// Standard include files:
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
// Project include files:
//-----------------------------------------------------------------------------
//
#ifdef __cplusplus
extern "C"
{
#endif
//-----------------------------------------------------------------------------
// Types and defines:
//-----------------------------------------------------------------------------
/*===========================================================*/
/* Tuner IIC Control GPIO TYPE DEFINITIONS */
/*===========================================================*/
/* GPIO Contrl */
typedef struct GpioCtrl
{
U32 GpioValue;
U32 GpioOutput;
U32 GpioDirection;
}GpioCtrl;
/*===========================================================*/
/* Tuner IIC Control GPIO DEFINITIONS */
/*===========================================================*/
#define GPIO_BASE_ADDRESS (0x8C800000)
#define GPIO_MASK_VALUE_0 (0x00000000)
#define GPIO_MASK_VALUE_1 (0xffffffff)
#define GPIOCTRL ((volatile GpioCtrl *) (GPIO_BASE_ADDRESS))
/*===========================================================*/
/* Bit-definiton for GPIO lines */
/*===========================================================*/
#define GPIO_0 (0x00000001)
#define GPIO_1 (0x00000002)
#define GPIO_2 (0x00000004)
#define GPIO_3 (0x00000008)
#define GPIO_4 (0x00000010)
#define GPIO_5 (0x00000020)
#define GPIO_6 (0x00000040)
#define GPIO_7 (0x00000080)
#define GPIO_8 (0x00000100)
#define GPIO_9 (0x00000200)
#define GPIO_10 (0x00000400)
#define GPIO_11 (0x00000800)
#define GPIO_12 (0x00001000)
#define GPIO_13 (0x00002000)
#define GPIO_14 (0x00004000)
#define GPIO_15 (0x00008000)
#define GPIO_16 (0x00010000)
#define GPIO_17 (0x00020000)
#define GPIO_18 (0x00040000)
#define GPIO_19 (0x00080000)
#define GPIO_20 (0x00100000)
#define GPIO_21 (0x00200000)
#define GPIO_22 (0x00400000)
#define GPIO_23 (0x00800000)
#define GPIO_24 (0x01000000)
#define GPIO_25 (0x02000000)
#define GPIO_26 (0x04000000)
#define GPIO_27 (0x08000000)
#define GPIO_28 (0x10000000)
#define GPIO_29 (0x20000000)
#define GPIO_30 (0x40000000)
#define GPIO_31 (0x80000000)
/*===========================================================*/
/*Tuner Control Pin */
/*===========================================================*/
#define TUNER_BUS_ENABLE GPIO_18
#define TUNER_SEARCH_READY_FLAG GPIO_17
#define TUNER_SDA GPIO_24
#define TUNER_SCL GPIO_25
//-----------------------------------------------------------------------------
// Exported functions:
//-----------------------------------------------------------------------------
//
//-----------------------------------------------------------------------------
// FUNCTION: fmTuner_InitializeGPIO
//
// DESCRIPTION: This function is used for module initialization
//
// RETURN: U32,for description,please refer to global.h
//
// NOTES: <Function notes - pre/post state, side effects, reentrancy>
//---------------------------------------------------------------------------
void fmTuner_InitializeGPIO(void);
//-----------------------------------------------------------------------------
// FUNCTION: fmTuner_BusEnable
//
// DESCRIPTION: This function is used for module initialization
//
// RETURN: U32,for description,please refer to global.h
//
// NOTES: <Function notes - pre/post state, side effects, reentrancy>
//-----------------------------------------------------------------------------
void fmTuner_BusEnable(U32 kTrueFalse);
//-----------------------------------------------------------------------------
// FUNCTION: fmTuner_ToggleBusEnable
//
// DESCRIPTION: This function is used for module initialization
//
// RETURN: U32,for description,please refer to global.h
//
// NOTES: <Function notes - pre/post state, side effects, reentrancy>
//-----------------------------------------------------------------------------
void fmTuner_ToggleBusEnable(void);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -