📄 iox.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. */
/****************************************************************************/
/****************************************************************************/
/* iox.h */
/* */
/* IO Expander. */
/****************************************************************************/
#ifndef __IOX_H
#define __IOX_H
#include "common.h"
#include "i2c.h"
#include "sysmon.h"
/****************************************************/
/* Includes common driver functions. */
/****************************************************/
#include "ioExpander.h"
/****************************************************/
/* Application configuration. */
/****************************************************/
#define IOXDEVICE_TYPE IOXTYPE_PCA9539 /* device type */
#define IOXDEVICE_PORT I2C_PORT0 /* expander i2c port */
#define IOXDEVICE_PINS 16 /* total number of pins implemented */
#define IOXDEVICE_TIMEOUT 500 /* expander i2c access timeout */
/****************************************************/
/* DDP2230 expander pin definitions. */
/****************************************************/
#define IOX_FAN1LOCK 0
#define IOX_FAN2LOCK 1
#define IOX_FAN3LOCK 2
#define IOX_PIN_03 3
#define IOX_D1_RED 4
#define IOX_D1_GREEN 5
#define IOX_D2_RED 6
#define IOX_D2_GREEN 7
#define IOX_PIN_HDMIHPD 8
#define IOX_PIN_11 9
#define IOX_PIN_12 10
#define IOX_PIN_13 11
#define IOX_D3_RED 12
#define IOX_D3_GREEN 13
#define IOX_D4_RED 14
#define IOX_D4_GREEN 15
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -