📄 gpiofunction.h
字号:
/****************************************************************************/
/* TEXAS INSTRUMENTS PROPRIETARY INFORMATION */
/* */
/* (c) Copyright, Texas Instruments Incorporated, 2006. */
/* All Rights Reserved. */
/* */
/* Property of Texas Instruments Incorporated. Restricted Rights - */
/* Use, duplication, or disclosure is subject to restrictions set */
/* forth in TI's program license agreement and associated documentation. */
/****************************************************************************/
/****************************************************************************/
/* gpioFunction.h */
/* */
/* DDP2230 Application-specific names for GPIO pins. */
/****************************************************************************/
#ifndef __GPIOFUNCTION_H
#define __GPIOFUNCTION_H
#include "common.h"
#include "gpio.h"
#define GIO_UART1TXD GPIO_PIN0 /* (O) UART1 TxD (alt function) */
#define GIO_UART1RXD GPIO_PIN1 /* (I) UART1 RxD (alt function) */
#define GIO_LAMP_HOT GPIO_PIN2 /* (I) Lamp hot input */
#define GIO_FE_RESET GPIO_PIN3 /* (O) Front-end reset */
#define GIO_ADC_COAST GPIO_PIN4 /* (O) ADC Coast (alt function) */
#define GIO_ADC_CLAMP GPIO_PIN5 /* (O) ADC Clamp (alt function) */
#define GIO_DYN_APERTURE GPIO_PIN6 /* (O) dyn aperture (alt function) */
#define GIO_LEDPWR07 GPIO_PIN7 /* (O) LED Power 07 */
#define GIO_LEDPWR08 GPIO_PIN8 /* (O) LED Power 08 */
#define GIO_DELPWR09 GPIO_PIN9 /* (O) LED Power 09 */
#define GIO_VOLUME GPIO_PIN10 /* (O) Volume (alt function) */
#define GIO_KPAD_DOWN GPIO_PIN11 /* (I) Keypad DOWN */
#define GIO_TILT_X GPIO_PIN12 /* (I) Tilt sensor X (alt function) */
#define GIO_TILT_Y GPIO_PIN13 /* (I) Tilt sensor Y (alt function) */
#define GIO_ADC_FIELD GPIO_PIN14 /* (I) ADC Field (alt function) */
#define GIO_KPAD_LEFT GPIO_PIN15 /* (I) Keypad LEFT */
#define GIO_OCKLB GPIO_PIN16 /* (O) OCKLB (alt function) */
#define GIO_KPAD_LEDPOWER GPIO_PIN17 /* (O) Keypad LED Power */
#define GIO_KPAD_LEDLAMP GPIO_PIN18 /* (O) Keypad LED Lamp */
#define GIO_KPAD_LED_HOT GPIO_PIN19 /* (O) Keypad LED Hot */
#define GIO_LEDSENSE GPIO_PIN20 /* (O) LED Sense (alt function) */
#define GIO_KPAD_SEL GPIO_PIN21 /* (I) Keypad SELECT */
#define GIO_I2C_1_SDA GPIO_PIN22 /* (b) I2C SDA (alt function) */
#define GIO_I2C_1_SCL GPIO_PIN23 /* (b) I2C SCL (alt function) */
#define GIO_LEDRED GPIO_PIN24 /* (O) LED Red (alt function) */
#define GIO_LEDGRN GPIO_PIN25 /* (O) LED Grn (alt function) */
#define GIO_LEDBLU GPIO_PIN26 /* (O) LED Blu (alt function) */
#define GIO_LEDCOLOR GPIO_PIN27 /* (O) LED Color (alt function) */
#define GIO_ADC_DVI_TRI GPIO_PIN28 /* (O) ADC/DVI Tri-state */
#define GIO_KPAD_UP GPIO_PIN29 /* (I) Keypad UP */
#define GIO_IR_0 GPIO_PIN30 /* (I) IR port 0 */
#define GIO_IR_1 GPIO_PIN31 /* (I) IR port 1 */
#define GIO_PM_21 GPIO_PIN32 /* (O) PMADDR21 (alt function) */
#define GIO_PM_22 GPIO_PIN33 /* (O) PMADDR22 (alt function) */
#define GIO_PM_23 GPIO_PIN34 /* (O) PMADDR23 (alt function) */
#define GIO_USBENABLE GPIO_PIN35 /* (O) USB enable */
#define GIO_BOOTHOLD GPIO_PIN36 /* (I) Boot loader hold */
#define GIO_KPAD_RIGHT GPIO_PIN37 /* (I) Keypad RIGHT */
#define GIO_VINT GPIO_PIN38 /* (I) Decoder/HDMI Interrupt */
#define GIO_KPAD_POWER GPIO_PIN39 /* (O) Keypad power */
/****************************************************************************/
/* GPIO Pin configuration constants. */
/* */
/* Used to clarify values of GPIO_GetPinCfg() and GPIO_GetPinCfg(). */
/****************************************************************************/
#define GIOCFG_INPUT FALSE /* IODirection parameter */
#define GIOCFG_OUTPUT TRUE
#define GIOCFG_OPENDRAIN TRUE /* OpenDrain parameter */
#define GIOCFG_ACTIVE FALSE
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -