|
@@ -226,9 +226,7 @@ void dcode_0()
|
|
|
LOG("D0 - Reset\n");
|
|
|
if (code_seen('B')) //bootloader
|
|
|
{
|
|
|
- cli();
|
|
|
- wdt_enable(WDTO_15MS);
|
|
|
- while(1);
|
|
|
+ softReset();
|
|
|
}
|
|
|
else //reset
|
|
|
{
|
|
@@ -252,8 +250,7 @@ void dcode_1()
|
|
|
cli();
|
|
|
for (int i = 0; i < 8192; i++)
|
|
|
eeprom_write_byte((unsigned char*)i, (unsigned char)0xff);
|
|
|
- wdt_enable(WDTO_15MS);
|
|
|
- while(1);
|
|
|
+ softReset();
|
|
|
}
|
|
|
|
|
|
/*!
|
|
@@ -420,8 +417,7 @@ void dcode_5()
|
|
|
boot_dst_addr = (uint32_t)address;
|
|
|
boot_src_addr = (uint32_t)(&data);
|
|
|
bootapp_print_vars();
|
|
|
- wdt_enable(WDTO_15MS);
|
|
|
- while(1);
|
|
|
+ softReset();
|
|
|
}
|
|
|
while (count)
|
|
|
{
|
|
@@ -467,8 +463,7 @@ void dcode_7()
|
|
|
boot_copy_size = (uint16_t)0xc00;
|
|
|
boot_src_addr = (uint32_t)0x0003e400;
|
|
|
boot_dst_addr = (uint32_t)0x0003f400;
|
|
|
- wdt_enable(WDTO_15MS);
|
|
|
- while(1);
|
|
|
+ softReset();
|
|
|
*/
|
|
|
}
|
|
|
|