aboutsummaryrefslogtreecommitdiffstats
path: root/ports
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-05-18 16:10:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-05-18 16:10:31 +0000
commit602cff4618efa156b746e20b668c6eab8615c438 (patch)
treec628512c1106e203c1e2589e7d9cb4cabca514dd /ports
parent3787f5d2a55bb4f68059f3218b7c58d1431a6660 (diff)
downloadChibiOS-602cff4618efa156b746e20b668c6eab8615c438.tar.gz
ChibiOS-602cff4618efa156b746e20b668c6eab8615c438.tar.bz2
ChibiOS-602cff4618efa156b746e20b668c6eab8615c438.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@295 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'ports')
-rw-r--r--ports/ARM7-AT91SAM7X/sam7x_emac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/ARM7-AT91SAM7X/sam7x_emac.c b/ports/ARM7-AT91SAM7X/sam7x_emac.c
index 5f2ca9380..9e10aaa08 100644
--- a/ports/ARM7-AT91SAM7X/sam7x_emac.c
+++ b/ports/ARM7-AT91SAM7X/sam7x_emac.c
@@ -246,9 +246,9 @@ void InitEMAC(int prio) {
AT91C_BASE_EMAC->EMAC_NCR |= AT91C_EMAC_MPE;
if ((phy_get(MII_PHYSID1) != (MII_MICREL_ID >> 16)) ||
(phy_get(MII_PHYSID2 & 0xFFF0) != (MII_MICREL_ID & 0xFFF0)))
- chDbgPanic("Wrong PHY identifier");
+ chSysHalt();
if (!get_link_status())
- chDbgPanic("No link");
+ chSysHalt();
AT91C_BASE_EMAC->EMAC_NCR &= ~AT91C_EMAC_MPE;
/*