#include "2440addr.h"extern void Uart_Printf(char *fmt,...);void Wr24C02(U32 slvAddr,U32 addr,U8 data);void Rd24C02(U32 slvAddr,U32 addr,U8 *data);void Run_IicPoll(void);void IicPoll(void) ;void Delay
硬件IIC类似软件模拟IIC,硬件IIC读取ACK需要判断寄存器IICCON的bit4是否发生中断为1。初始化: rGPEUP = 0xc000; //SDA SCL关上拉 rGPECON = 0xa0000000; //GPE14 GPE15设为SDA SCL功能 rIICCON