summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorJiaojinxing <jiaojinxing1987@gmail.com>2016-04-22 03:14:39 (GMT)
committer Jiaojinxing <jiaojinxing1987@gmail.com>2016-04-22 03:14:39 (GMT)
commit4ec6c4253ed1243aa2334dd8caac767014947f7b (patch)
treefbc92d89294594cfaba83e51a2251bf7e6085507
parent031627317aa335a9b3c1fc068acf8ef2b477b5b3 (diff)
downloadbspam335x-4ec6c4253ed1243aa2334dd8caac767014947f7b.zip
bspam335x-4ec6c4253ed1243aa2334dd8caac767014947f7b.tar.gz
bspam335x-4ec6c4253ed1243aa2334dd8caac767014947f7b.tar.bz2
Updated cpswif.c code format.
-rw-r--r--SylixOS/driver/netif/cpswif.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/SylixOS/driver/netif/cpswif.c b/SylixOS/driver/netif/cpswif.c
index 5d7f50b..bf5f152 100644
--- a/SylixOS/driver/netif/cpswif.c
+++ b/SylixOS/driver/netif/cpswif.c
@@ -95,7 +95,7 @@
#include "interrupt.h"
#include "delay.h"
#if CPSW_PHY_MDIO_EN > 0
-#include "phy.h"
+#include "phy.h"
#endif
#include "cache.h"
@@ -2166,13 +2166,13 @@ cpswif_phylink_config(struct cpswportif * cpswif, u32_t slv_port_num) {
}
if (i == 32) {
- while(0 == (MDIOPhyAliveStatusGet(cpswinst->mdio_base)
- & (1 << cpswinst->port[slv_port_num - 1].phy_addr))){
- LWIP_PRINTF("No PHY found at address %d for Port %d of Instance %d.",
- cpswinst->port[slv_port_num - 1].phy_addr, slv_port_num,
- cpswif->inst_num);
- sleep(1);
- }
+ while(0 == (MDIOPhyAliveStatusGet(cpswinst->mdio_base)
+ & (1 << cpswinst->port[slv_port_num - 1].phy_addr))){
+ LWIP_PRINTF("No PHY found at address %d for Port %d of Instance %d.",
+ cpswinst->port[slv_port_num - 1].phy_addr, slv_port_num,
+ cpswif->inst_num);
+ sleep(1);
+ }
} else {
cpswinst->port[slv_port_num - 1].phy_addr = i;
}