Fix initialization of network config block (#140)
***ST_NUCLEO144_F439ZI*** ***ST_NUCLEO144_F746ZG***
This commit is contained in:
Родитель
dc607fb376
Коммит
2d21b231cc
|
@ -14,13 +14,16 @@ bool InitialiseNetworkDefaultConfig(HAL_Configuration_NetworkInterface * pconfig
|
|||
{
|
||||
(void)configurationIndex;
|
||||
|
||||
// zero memory
|
||||
memset(pconfig, 0, sizeof(HAL_Configuration_NetworkInterface));
|
||||
|
||||
// make sure the config block marker is set
|
||||
memcpy(pconfig->Marker, c_MARKER_CONFIGURATION_NETWORK_V1, sizeof(c_MARKER_CONFIGURATION_NETWORK_V1));
|
||||
|
||||
pconfig->InterfaceType = NetworkInterfaceType_Ethernet;
|
||||
pconfig->StartupAddressMode = AddressMode_DHCP;
|
||||
pconfig->AutomaticDNS = 1;
|
||||
pconfig->SpecificConfigId = 0;
|
||||
pconfig->SpecificConfigId = UINT32_MAX;
|
||||
|
||||
// set MAC address with ST provided MAC for development boards
|
||||
// 00:80:E1:01:35:D1
|
||||
|
|
|
@ -14,13 +14,16 @@ bool InitialiseNetworkDefaultConfig(HAL_Configuration_NetworkInterface * pconfig
|
|||
{
|
||||
(void)configurationIndex;
|
||||
|
||||
// zero memory
|
||||
memset(pconfig, 0, sizeof(HAL_Configuration_NetworkInterface));
|
||||
|
||||
// make sure the config block marker is set
|
||||
memcpy(pconfig->Marker, c_MARKER_CONFIGURATION_NETWORK_V1, sizeof(c_MARKER_CONFIGURATION_NETWORK_V1));
|
||||
|
||||
pconfig->InterfaceType = NetworkInterfaceType_Ethernet;
|
||||
pconfig->StartupAddressMode = AddressMode_DHCP;
|
||||
pconfig->AutomaticDNS = 1;
|
||||
pconfig->SpecificConfigId = 0;
|
||||
pconfig->SpecificConfigId = UINT32_MAX;
|
||||
|
||||
// set MAC address with ST provided MAC for development boards
|
||||
// 00:80:E1:01:35:D1
|
||||
|
|
Загрузка…
Ссылка в новой задаче