update:
增加读取上下行网口的MAC地址
This commit is contained in:
+2262
-2259
File diff suppressed because it is too large
Load Diff
+32
-19
File diff suppressed because one or more lines are too long
Binary file not shown.
+1
-1
@@ -18,7 +18,7 @@
|
||||
#include "proto_modbus_tcp_master.h"
|
||||
|
||||
const char *HwVersion = "V2.2";
|
||||
char SwVersion[24] = "SECS2 V2.2-V1.005.SJ";
|
||||
char SwVersion[24] = "SECS2 V2.2-V1.006.SJ";
|
||||
void TASK_Idle(void);
|
||||
void Task_10ms(void);
|
||||
void Task_50ms(void);
|
||||
|
||||
@@ -339,7 +339,8 @@ static ModbusErrorCode_e ModbusCommunicationDataWrite(u16 Addr, u16 Value)
|
||||
W5500_1.Init();
|
||||
Wdg.Feed();
|
||||
Usr_Flash.Write();
|
||||
}
|
||||
}break;
|
||||
|
||||
|
||||
|
||||
/* 设备 SN */
|
||||
@@ -679,6 +680,14 @@ static u16 ModbusCommunicationDataRead(u16 Addr)
|
||||
{
|
||||
Data = W5500_1.W5500_Class[0].ConfigData.DPort[0] << 8 | W5500_1.W5500_Class[0].ConfigData.DPort[1];
|
||||
}break;
|
||||
case 60 ... 65:
|
||||
{
|
||||
Data = W5500.Phy_Addr[Addr - 60];
|
||||
}break;
|
||||
case 66 ... 71:
|
||||
{
|
||||
Data = W5500_1.Phy_Addr[Addr - 66];
|
||||
}break;
|
||||
|
||||
/* ========== 字符串字段(每个12个寄存器) ========== */
|
||||
/* 设备 SN */
|
||||
|
||||
Reference in New Issue
Block a user