volatile word gw_TKRCTM;
void WriteE2P(word tw_Addr,word tw_Len,byte *tbp_Data)
{
word ii;
for (ii=0;ii<tw_Len;ii++,tw_Addr++,tbp_Data++)
{
while(EECR & (1<<EEWE));
EEDR=(*tbp_Data);
cli();
EEAR=tw_Addr;
EECR |= (1<<EEMWE);
EECR |= (1<<EEWE);
sei();
gw_TKRCTMRef=0;
WriteE2P(TK_RC_Offset,MAX_TK_RC,(byte*)(&gw_TKRCTMRef) );
while(EECR & (1<<EEWE));
}
}
请好心人帮我分析下,定义了一volatile变量,然后赋0,做指针变量,那么tbp_Data++
是什么值?谢谢 |