原涵数: uint16 ReadFromNet(uint8 ADDR_16) { uint16 temp; temp=(*((volatile unsigned short *)NET_BASE_ADDR+ADDR_16));//0x83400000 return (temp); } 改成这样就不行: uint16 ReadFromNet(uint8 ADDR_16) { uint16 temp; uint32 address; address=NET_BASE_ADDR+ADDR_16; temp=(*((volatile unsigned short *)address));//0x83400000 return (temp); } 谁清楚的解译一下,谢谢! |