keil/include/drivers/global_param.c
@@ -5,7 +5,6 @@
#define FLASH_IAP_CTRL_MAP      (uint32_t)0x0402E000    //the control map start address, 63K MK8000修改
uint16_t g_com_map[COM_MAP_SIZE];
uint8_t parameter_check(void)
{
@@ -84,15 +83,9 @@
        g_com_map[CNT_RESTART]=0;
        g_com_map[CNT_REBOOT]=0;
        g_com_map[CNT_UPDATE]=0;
        g_com_map[MOTOR_ONTIME_INDEX]=10;
      g_com_map[MODBUS_MODE]=0;
        g_com_map[ACTIVE_INDEX]=0;
        g_com_map[TCP_IP_0]=0x111;
        g_com_map[TCP_IP_0]=0x198;
        g_com_map[TCP_IP_0]=0x60;
        g_com_map[TCP_IP_0]=0x6;
        g_com_map[TCP_IP_0]=1234;
      g_com_map[STATIONARY_TIME]=20;       //静止判定时间20秒
        g_com_map[HEIGHTOFFEST_INDEX]=0;
        save_com_map_to_flash();
    }
@@ -129,13 +122,7 @@
        g_com_map[CNT_UPDATE]=0;
        g_com_map[MODBUS_MODE]=0;
        g_com_map[ACTIVE_INDEX]=0;
        g_com_map[TCP_IP_0]=0x111;
        g_com_map[TCP_IP_1]=0x198;
        g_com_map[TCP_IP_2]=0x60;
        g_com_map[TCP_IP_3]=0x6;
        g_com_map[TCP_PORT]=0x1234;
      g_com_map[STATIONARY_TIME]=20;       //静止判定时间20秒
        g_com_map[HEIGHTOFFEST_INDEX]=0;
        save_com_map_to_flash();
    }