⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iic.h

📁 hyesco AT91RM9200 IIC source code
💻 H
字号:
//*----------------------------------------------------------------------------
//*      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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -