From f65ee52752d697b68910e48ddf196b1b07cfb0d7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 10 Jul 2012 16:10:38 +0000 Subject: [PATCH] LPC43xx fix: Logic was disabling XTAL, not enabling it git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4924 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/lpc43xx/lpc43_cgu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/src/lpc43xx/lpc43_cgu.c b/arch/arm/src/lpc43xx/lpc43_cgu.c index 036da2697c..180d17bda6 100644 --- a/arch/arm/src/lpc43xx/lpc43_cgu.c +++ b/arch/arm/src/lpc43xx/lpc43_cgu.c @@ -151,9 +151,9 @@ static inline void lpc43_xtalconfig(void) #endif putreg32(regval, LPC43_XTAL_OSC_CTRL); - /* Enable the crystal oscillator */ + /* Enable the crystal oscillator by taking it out of power down mode */ - regval |= XTAL_OSC_CTRL_ENABLE; + regval &= ~XTAL_OSC_CTRL_ENABLE; putreg32(regval, LPC43_XTAL_OSC_CTRL); /* Delay for stable clock input */