iox.h

来自「IT projecotr reference design.」· C头文件 代码 · 共 65 行

H
65
字号
/****************************************************************************/
/*             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 + =
减小字号Ctrl + -
显示快捷键?