@@ -5,7 +5,7 @@ int EthernetClass::begin(unsigned long timeout, unsigned long responseTimeout)
55{
66 static DhcpClass s_dhcp;
77 _dhcp = &s_dhcp;
8- stm32_eth_init (macAddressDefault (), NULL , NULL , NULL );
8+ stm32_eth_init (MACAddressDefault (), NULL , NULL , NULL );
99
1010 // Now try to get our config info from a DHCP server
1111 int ret = _dhcp->beginWithDHCP (mac_address, timeout, responseTimeout);
@@ -43,7 +43,7 @@ void EthernetClass::begin(IPAddress local_ip, IPAddress subnet, IPAddress gatewa
4343
4444void EthernetClass::begin (IPAddress local_ip, IPAddress subnet, IPAddress gateway, IPAddress dns_server)
4545{
46- stm32_eth_init (macAddressDefault (), local_ip.raw_address (), gateway.raw_address (), subnet.raw_address ());
46+ stm32_eth_init (MACAddressDefault (), local_ip.raw_address (), gateway.raw_address (), subnet.raw_address ());
4747 /* If there is a local DHCP informs it of our manual IP configuration to
4848 prevent IP conflict */
4949 stm32_DHCP_manual_config ();
@@ -63,7 +63,7 @@ int EthernetClass::begin(uint8_t *mac_address, unsigned long timeout, unsigned l
6363 {
6464 _dnsServerAddress = _dhcp->getDnsServerIp ();
6565 }
66- macAddress (mac_address);
66+ MACAddress (mac_address);
6767 return ret;
6868}
6969
@@ -98,7 +98,7 @@ void EthernetClass::begin(uint8_t *mac, IPAddress local_ip, IPAddress dns_server
9898 prevent IP conflict */
9999 stm32_DHCP_manual_config ();
100100 _dnsServerAddress = dns_server;
101- macAddress (mac);
101+ MACAddress (mac);
102102}
103103
104104EthernetLinkStatus EthernetClass::linkStatus ()
@@ -137,7 +137,7 @@ void EthernetClass::schedule(void)
137137 stm32_eth_scheduler ();
138138}
139139
140- uint8_t * EthernetClass::macAddressDefault (void )
140+ uint8_t * EthernetClass::MACAddressDefault (void )
141141{
142142 if ((mac_address[0 ] + mac_address[1 ] + mac_address[2 ] + mac_address[3 ] + mac_address[4 ] + mac_address[5 ]) == 0 ) {
143143 uint32_t baseUID = *(uint32_t *)UID_BASE;
@@ -151,7 +151,7 @@ uint8_t * EthernetClass::macAddressDefault(void)
151151 return mac_address;
152152}
153153
154- void EthernetClass::macAddress (uint8_t *mac) {
154+ void EthernetClass::MACAddress (uint8_t *mac) {
155155 mac_address[0 ] = mac[0 ];
156156 mac_address[1 ] = mac[1 ];
157157 mac_address[2 ] = mac[2 ];
@@ -160,7 +160,7 @@ void EthernetClass::macAddress(uint8_t *mac) {
160160 mac_address[5 ] = mac[5 ];
161161}
162162
163- uint8_t * EthernetClass::macAddress (void ) {
163+ uint8_t * EthernetClass::MACAddress (void ) {
164164 return mac_address;
165165}
166166
0 commit comments