Fix initialization of network config block (#140)

***ST_NUCLEO144_F439ZI***
***ST_NUCLEO144_F746ZG***
This commit is contained in:
José Simões 2020-10-27 13:21:48 +00:00 коммит произвёл GitHub
Родитель dc607fb376
Коммит 2d21b231cc
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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