mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
Move local variables to top of function for compliance with coding standard.
This commit is contained in:
@@ -2010,6 +2010,11 @@ static void kinetis_reset(struct kinetis_driver_s *priv)
|
|||||||
int kinetis_netinitialize(int intf)
|
int kinetis_netinitialize(int intf)
|
||||||
{
|
{
|
||||||
struct kinetis_driver_s *priv;
|
struct kinetis_driver_s *priv;
|
||||||
|
#ifdef CONFIG_NET_ETHERNET
|
||||||
|
uint32_t uidl;
|
||||||
|
uint32_t uidml;
|
||||||
|
uint8_t *mac;
|
||||||
|
#endif
|
||||||
uint32_t regval;
|
uint32_t regval;
|
||||||
|
|
||||||
/* Get the interface structure associated with this interface number. */
|
/* Get the interface structure associated with this interface number. */
|
||||||
@@ -2157,9 +2162,9 @@ int kinetis_netinitialize(int intf)
|
|||||||
* 1st octet)
|
* 1st octet)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
uint32_t uidl = getreg32(KINETIS_SIM_UIDL);
|
uidl = getreg32(KINETIS_SIM_UIDL);
|
||||||
uint32_t uidml = getreg32(KINETIS_SIM_UIDML);
|
uidml = getreg32(KINETIS_SIM_UIDML);
|
||||||
uint8_t *mac = priv->dev.d_mac.ether_addr_octet;
|
mac = priv->dev.d_mac.ether_addr_octet;
|
||||||
|
|
||||||
uidml |= 0x00000200;
|
uidml |= 0x00000200;
|
||||||
uidml &= 0x0000FEFF;
|
uidml &= 0x0000FEFF;
|
||||||
|
|||||||
Reference in New Issue
Block a user