• 大小: 8.22MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-12-21
  • 语言: Html/CSS
  • 标签: 源码包  

资源简介

24口以太网交换机,支持网管功能,编程语言c JavaScript html

资源截图

代码片段和文件信息

#pragma regparms
/******************************************************************************
*
*   Name:           BOOTMAIN.C
*
*   Description:    Firmware Update main function 
*
*   Copyright:      (c) 2005-2050    IC Plus Corp.
*                   All rights reserved.  By Chance
*
*******************************************************************************/
//20060105
//#include 
#include 
#include “net.h“
#include “\udp\udp.h“
#include “\icmp\icmp.h“
#include “public.h“
#include “timer.h“
#include “net_cmd.h“//20080304
//******Network information***********
//ip mac dns gateway information
NET_INFO icp_netinfo;
static u32_t xdata start current start2;
extern u8_t Flash_check_error_flag;// james 20090506
// host ipaddrss
//u16_t uip_hostaddr[2];
//******Tx Rx Buffer******************
//tx rx buffer
//u8_t xdata uip_fw_buf[UIP_BUFSIZE+2];
// tx rx len
//volatile u16_t uip_len;
//*************************************
//***Others****************************
u16_t ipid; // for Internet Protocol
u16_t blok_num;  // for TFTP
u16_t Rx_data_len; //input or output data length
u8_t  tftp_last_flag; //for last packet flag
u8_t  tftp_start_flag; //for last packet flag
u32_t tftp_counter;

u8_t Global_flag_restart=0;
u8_t Global_flag_firmwareupdate_inprogress=0;//0:not in progress 1:in progress by web 2: in progress by tftp
u8_t  Global_suspend_count;
extern u32_t inspect_img512k;
u8_t *uip_fw_buf=uip_buf_real_mem;//sorbica071122
u8_t last_tagged_ethertype_offset=0;//sorbica071123
void os_cbk_fu_switch_init(void);
void CheckPktSend()
{
if(uip_len>0)
{
uip_arp_out();
EthernetSend(uip_buf_realuip_len);
uip_len=0;
}
}
//*************************************
extern u16_t Phase_Flash_Erase;//sorbica071018

void WatchDogTimerReset(void);//for WDT
/******************************************************************************
*
*  Function:    boot_init
*
*  Description:  Initial MAC address IP address and ipid
*               
*  Parameters:  NONE
*               
*  Returns:     NONE
*               
*******************************************************************************/
void boot_init(void)

u8_t i;
printf(“\n\rMAC Address: “);
    for(i=0;i<5;i++)
    {
       icp_netinfo.MY_MAC[i]=IP210RegRead(REG_MAC_ADDR+i);
//       uip_ethaddr.addr[i]=icp_netinfo.MY_MAC[i];
// printf(“%02x.“(u16_t)icp_netinfo.MY_MAC[i]);
        uip_ethaddr.addr[i]=KSetting_Info.netif->MACID[i];
printf(“%02x.“(u16_t)KSetting_Info.netif->MACID[i]);

    }
    icp_netinfo.MY_MAC[i]=IP210RegRead(REG_MAC_ADDR+i);
//    uip_ethaddr.addr[i]=icp_netinfo.MY_MAC[i];    
// printf(“%02x“(u16_t)icp_netinfo.MY_MAC[i]);   
        uip_ethaddr.addr[i]=KSetting_Info.netif->MACID[i];
printf(“%02x“(u16_t)KSetting_Info.netif->MACID[i]);

printf(“\n\rIP  Address: “);
    for(i=0;i<3;i++) 
    {
icp_netinfo.MY_IP[i] = IP210RegRead(REG_IP_ADDR+i

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      11295  1995-06-21 18:11  S1024PRO_121114\S1024PRO__121114\bin\BIN2HEX.EXE

     文件      32768  2006-01-27 15:30  S1024PRO_121114\S1024PRO__121114\bin\chksum.exe

     文件      45056  2007-12-14 20:15  S1024PRO_121114\S1024PRO__121114\bin\Cod2C.exe

     文件      45056  2007-01-18 09:24  S1024PRO_121114\S1024PRO__121114\bin\Cod2C1.exe

     文件      24576  2006-10-13 16:50  S1024PRO_121114\S1024PRO__121114\bin\ER.exe

     文件      40960  2008-04-21 10:22  S1024PRO_121114\S1024PRO__121114\bin\genCore.exe

     文件      11642  1995-04-29 15:08  S1024PRO_121114\S1024PRO__121114\bin\HEX2BIN.EXE

     文件      53248  2010-09-23 17:24  S1024PRO_121114\S1024PRO__121114\bin\hmerge.exe

     文件       3375  2011-07-06 10:58  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\firmwareUpdate.Opt

     文件       4106  2011-05-27 17:14  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\firmwareUpdate.Uv2

     文件       3375  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\firmwareUpdate_Opt.Bak

     文件       4106  2011-04-12 20:38  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\firmwareUpdate_Uv2.Bak

     文件     130394  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\bootmain.obj

     文件      74249  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\eedefault.obj

     文件     106882  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\ee_process.obj

     文件    1416369  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\firmwareUpdate

     文件     103065  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\firmwareUpdate.hex

     文件     231433  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\firmwareUpdate.m51

     文件        691  2011-07-06 10:58  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\firmwareUpdate.plg

     文件      21408  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\fw_os_cbk.obj

     文件      46300  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\htmfiles.obj

     文件        556  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\htmfiles.__i

     文件      78774  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\kernelsetting.obj

     文件      84898  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\main.obj

     文件       2220  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\STARTUP.obj

     文件     122600  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\updateCbk.obj

     文件        553  2011-07-06 10:50  S1024PRO_121114\S1024PRO__121114\Project32\firmwareUpdate\obj\updateCbk.__i

     文件    2097152  2010-05-12 21:32  S1024PRO_121114\S1024PRO__121114\Project32\WebCtrl\-c

     文件       5103  2012-11-13 17:00  S1024PRO_121114\S1024PRO__121114\Project32\WebCtrl\build_msg.txt

     文件    2111483  2012-11-13 17:00  S1024PRO_121114\S1024PRO__121114\Project32\WebCtrl\exe\IP210Core.bin

............此处省略980个文件信息

评论

共有 条评论