?? twi.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 :
//*----------------------------------------------------------------------------
#ifndef twi_h
#define twi_h
//0x50 is address 0
#define AT91C_EEPROM_I2C_ADDRESS (0x50<<16)
#define AT91C_EEPROM_READ_OK 0
#define AT91C_EEPROM_WRITE_OK 0
#define AT91C_TWI_CLOCK 100000
extern void AT91F_SetTwiClock(const AT91PS_TWI);
extern int AT91F_TWI_Write (const AT91PS_TWI, int, char *, int );
extern int AT91F_TWI_Read (const AT91PS_TWI, int, char *, int );
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -