mirror of https://github.com/acidanthera/audk.git
31 lines
1.0 KiB
C
31 lines
1.0 KiB
C
|
/** @file
|
||
|
Definition for Pcal9555 I2c IO Expander.
|
||
|
|
||
|
Copyright (c) 2013-2015 Intel Corporation.
|
||
|
|
||
|
This program and the accompanying materials
|
||
|
are licensed and made available under the terms and conditions of the BSD License
|
||
|
which accompanies this distribution. The full text of the license may be found at
|
||
|
http://opensource.org/licenses/bsd-license.php
|
||
|
|
||
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||
|
|
||
|
|
||
|
**/
|
||
|
|
||
|
#ifndef __PCAL9555_H__
|
||
|
#define __PCAL9555_H__
|
||
|
|
||
|
#define PCAL9555_REG_IN_PORT0 0x00
|
||
|
#define PCAL9555_REG_IN_PORT1 0x01
|
||
|
#define PCAL9555_REG_OUT_PORT0 0x02
|
||
|
#define PCAL9555_REG_OUT_PORT1 0x03
|
||
|
#define PCAL9555_REG_CFG_PORT0 0x06
|
||
|
#define PCAL9555_REG_CFG_PORT1 0x07
|
||
|
|
||
|
#define PCAL9555_REG_PULL_EN_PORT0 0x46
|
||
|
#define PCAL9555_REG_PULL_EN_PORT1 0x47
|
||
|
|
||
|
#endif
|