iic.h

来自「hyesco AT91RM9200 IIC source code」· C头文件 代码 · 共 27 行

H
27
字号
//*----------------------------------------------------------------------------
//*      ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : twi.h
//* Object              :
//*----------------------------------------------------------------------------


#define AT91C_EEPROM_I2C_ADDRESS  	(0x50<<16)
#define AT91C_TWI_CLOCK 	100000
#define AT91C_MASTER_CLOCK  60000000

#define AT91C_EEPROM_READ_OK			0
#define AT91C_EEPROM_WRITE_OK			0

extern int  AT91F_TWI_Write (const AT91PS_TWI, int, char *, int );
extern int  AT91F_TWI_Read  (const AT91PS_TWI, int, char *, int );
extern void TWI_Write(int, char *, int);
extern void AT91F_SetTwiClock(const AT91PS_TWI);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?