From: asterix Date: Thu, 13 Oct 2011 15:12:50 +0000 (+0000) Subject: Remove external reset generation, because on the board there are more device connecte... X-Git-Url: https://codewiz.org/gitweb?p=bertos.git;a=commitdiff_plain;h=f3c01fa77d324dca7c4a96f9632cd1c54583d60b Remove external reset generation, because on the board there are more device connected to the cpu NRST pin, this could be a problem during initialization of various devices. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5159 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/drv/eth_sam3.c b/bertos/cpu/cortex-m3/drv/eth_sam3.c index f93275db..187041f2 100644 --- a/bertos/cpu/cortex-m3/drv/eth_sam3.c +++ b/bertos/cpu/cortex-m3/drv/eth_sam3.c @@ -238,13 +238,6 @@ static int emac_reset(void) PIOB_PUDR = BV(PHY_RXDV_TESTMODE_BIT); #endif - // Toggle external hardware reset pin. - RSTC_MR = RSTC_KEY | (1 << RSTC_ERSTL_SHIFT) | BV(RSTC_URSTEN); - RSTC_CR = RSTC_KEY | BV(RSTC_EXTRST); - - while ((RSTC_SR & BV(RSTC_NRSTL)) == 0) - cpu_relax(); - // Configure MII ports. #if CPU_ARM_AT91 PIOB_ASR = PHY_MII_PINS;