mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 15:05:07 +00:00
back out part of last change
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1785 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
e99498b8d2
commit
4bdf18ad2f
1 changed files with 2 additions and 3 deletions
|
|
@ -210,10 +210,9 @@ void lm3s_clockconfig(uint32 newrcc, uint32 newrcc2)
|
|||
if (((rcc & SYSCON_RCC_MOSCDIS) && !(newrcc & SYSCON_RCC_MOSCDIS)) ||
|
||||
((rcc & SYSCON_RCC_IOSCDIS) && !(newrcc & SYSCON_RCC_IOSCDIS)))
|
||||
{
|
||||
/* Enable any selected osciallators */
|
||||
/* Enable any selected osciallators (but don't disable any yet) */
|
||||
|
||||
rcc &= ~RCC_OSCMASK;
|
||||
rcc |= (newrcc & RCC_OSCMASK);
|
||||
rcc &= (~RCC_OSCMASK | (newrcc & RCC_OSCMASK));
|
||||
putreg32(rcc, LM3S_SYSCON_RCC);
|
||||
|
||||
/* Wait for the newly selected oscillator(s) to settle. This is tricky because
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue