?? hawki2c.h
字號:
/* hawkI2c.h - Low-Level Falcon/Hawk I2C header file *//* Copyright 1999 Wind River Systems, All rights reserved *//* Copyright 1998 Motorola, Inc., All Rights Reserved *//*modification history--------------------01b,17jul99,dmw Added MTXPlus support .01a,15dec98,mdp Written (from version 01a of mcpn750/ravenI2c.h)*//*DESCRIPTIONThis file contains the falcon/hawk i2c definitions.*/#ifndef INChawkI2ch#define INChawkI2ch#ifdef __cplusplusextern "C" {#endif/* * miscellaneous defines */#define I2C_TIMEOUT_COUNT 100/* * i2c byte 1 (slave address) control bits */#define BYTE_WRITE_MASK 0xFFFE /* AND to clear bit 0 */#define BYTE_READ_MASK 1 /* OR to set bit 0 *//* * Falcon3/Hawk I2C registers */#define I2C_HAWK_CLOCK_REG 0xFEF80090#define I2C_HAWK_CONTROL_REG 0xFEF80098#define I2C_HAWK_STATUS_REG 0xFEF800A0#define I2C_HAWK_TXD_REG 0xFEF800A8#define I2C_HAWK_RXD_REG 0xFEF800B0/* * I2C_CONTROL_REG bits */#define I2C_HAWK_START (1<<3)#define I2C_HAWK_STOP (1<<2)#define I2C_HAWK_ACKOUT (1<<1)#define I2C_HAWK_ENBL (1<<0)/* * I2C_STATUS_REG bits */#define I2C_HAWK_DATIN (1<<3)#define I2C_HAWK_ERR (1<<2)#define I2C_HAWK_ACKIN (1<<1)#define I2C_HAWK_CMPLT (1<<0)#define DIMM_ECC_TYPE 2 /* DIMM ECC Configuration Type */#ifdef __cplusplus}#endif#endif /* INChawkI2ch */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -