主函数
#define ee_sizeof 256
int main(void)
{
uint8_t wbuf[ee_sizeof];
uint8_t rbuf[ee_sizeof];
uint16_t i;
i2c_gpio_init();
USART_GPIO_INIT();
for(i=0;i<ee_sizeof;i++)
{
wbuf[i]=i;
}
ee_writebyte(wbuf,0,ee_sizeof);
ee_Delay(0x0fffff);
ee_readbytes(rbuf,0,ee_sizeof);
for(i=0;i<ee_sizeof;i++)
{
printf(" %02X", rbuf[i]);
if ((i & 15) == 15)
{
printf("\r\n");
}
}
while(1);
}
|