• 大小: 6.87MB
    文件类型: .rar
    金币: 2
    下载: 0 次
    发布日期: 2024-01-27
  • 语言: Html/CSS
  • 标签:

资源简介

16口网管交换机,芯片为IC+ IP210W,IP1717,代码由c 和 JavaScript,html编程;

资源截图

代码片段和文件信息

#include “CPUCar.h“
#include “timer.h“
#include “kernelsetting.h“
#include “MDC_MDIO.h“

SCPUCarInfo CPUCarInfo;
void cpucar_inital(){
u8_t i=0;

CPUCarInfo.port=0;
IP210_Update_Timer_Counter();
for(i=0;i<8;i++){
CPUCarInfo.count[i]=0;
CPUCarInfo.time[i]=timercounter;
CPUCarInfo.clear_time[i]=0;
}
}

void cpucar_check(u8_t port){
u16_t tmpvalue=0 phyval=0;

if(ptr_EE_Info->CPUCar.Status==0)
return;
if(!(ptr_EE_Info->CPUCar.Port&(0x01< return;

CPUCarInfo.count[port]++;
IP210_Update_Timer_Counter();
    if(Delta_Time(CPUCarInfo.time[port])>=100){ //1 second 
CPUCarInfo.time[port]=timercounter;
//printf(“\ncount[port%d]=%d“(u16_t)port(u16_t)CPUCarInfo.count[port]);
if(CPUCarInfo.count[port]>=ptr_EE_Info->CPUCar.Unit_Pkt){
Write_Reg26((IP1717_PORT_RECEIVE_ENABLE_0+(port/16))(Read_Reg26(IP1717_PORT_RECEIVE_ENABLE_0+(port/16)))&~((0x0001<<(port%16))) );
//printf(“\nReg[0x1C]=0x%04X“Read_Reg26(IP1717_PORT_RECEIVE_ENABLE_0));
CPUCarInfo.port|=0x01< tmpvalue=Read_Reg26(IP1717_TRANSMIT_ENABLE);
if(!(tmpvalue&(0x0001< phyval=ReadPhy(8+port0);
phyval|=0x0800;
WritePhy(8+port0phyval);
}
CPUCarInfo.clear_time[port]=timercounter;
}
CPUCarInfo.count[port]=0;
}
}

void cpucar_timer(){
u16_t phyval=0 i=0;

if(ptr_EE_Info->CPUCar.Status==0)
return;

for(i=0;i if(CPUCarInfo.port&(0x01< IP210_Update_Timer_Counter();
if(Delta_Time(CPUCarInfo.clear_time[i])>=2000){ //20 second
Write_Reg26((IP1717_PORT_RECEIVE_ENABLE_0+(i/16))(Read_Reg26(IP1717_PORT_RECEIVE_ENABLE_0+(i/16))|(0x0001<<(i%16))) );

CPUCarInfo.port&=~(0x01< phyval=ReadPhy(8+i0);
phyval&=~(0x0800);
WritePhy(8+i0phyval);
}
}
}
}

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

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

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

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

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

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

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

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

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

     文件        323  2011-08-05 16:53  S1016_08PRO_121114\S1016_08PRO_121114\Notice.txt

     文件       2683  2011-06-29 18:15  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\firmwareUpdate.Opt

     文件       4003  2011-05-25 10:28  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\firmwareUpdate.Uv2

     文件       2999  2011-05-25 10:28  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\firmwareUpdate_Opt.Bak

     文件       4003  2011-05-25 10:24  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\firmwareUpdate_Uv2.Bak

     文件      97838  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\bootmain.obj

     文件      41946  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\eedefault.obj

     文件        548  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\eedefault.__i

     文件      74225  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\ee_process.obj

     文件        551  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\ee_process.__i

     文件    1246496  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\firmwareUpdate

     文件     104193  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\firmwareUpdate.hex

     文件     237579  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\firmwareUpdate.m51

     文件        641  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\firmwareUpdate.plg

     文件      22411  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\fw_os_cbk.obj

     文件        548  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\fw_os_cbk.__i

     文件      46409  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\htmfiles.obj

     文件        556  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\htmfiles.__i

     文件      45941  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\kernelsetting.obj

     文件        547  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\kernelsetting.__i

     文件      52418  2011-06-29 18:04  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\main.obj

     文件       2220  2011-05-25 10:28  S1016_08PRO_121114\S1016_08PRO_121114\Project16\firmwareUpdate\obj\STARTUP.obj

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

评论

共有 条评论

相关资源