文件名称:arm在线升级程序
文件大小:2.38MB
文件格式:ZIP
更新时间:2015-11-09 08:44:45
arm 在线升级
arm的在线升级程序int main(void)
{
u16 tmp;
Init_All_Periph();
UserProgram = (void (*)()) (0x08004131);
for(tmp=0;tmp<1024;tmp++)DATA.u_int[tmp]=(u16)0xFFFF;
if(BKP_ReadBackupRegister(BKP_DR1)==(u16)0x0000)(*UserProgram)();
else if(BKP_ReadBackupRegister(BKP_DR1)==(u16)0x0690)
{
up_data=1;
baud=BKP_ReadBackupRegister(BKP_DR2);
}
else
{
up_data=0;
Init595_165();
tmp=Read165();
I2C_EE_BufferRead(&address;_open,0x802,1);
if(address_open==1)I2C_EE_BufferRead(&address;,0x801,1);
else address=tmp>>8;
tmp=tmp>>5;
tmp&=7;
if(tmp<6)rate_485=0x01<