Fix a optimization related problem in the LM3S
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4907 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
41a2de75e9
commit
5a10f60df1
@ -110,7 +110,7 @@ static inline void lm3s_oscdelay(uint32_t rcc, uint32_t rcc2)
|
||||
* current clock rate is very slow.
|
||||
*/
|
||||
|
||||
uint32_t delay = FAST_OSCDELAY;
|
||||
uint32_t delay = FAST_OSCDELAY;
|
||||
|
||||
/* Are we currently using RCC2? */
|
||||
|
||||
@ -150,7 +150,7 @@ static inline void lm3s_oscdelay(uint32_t rcc, uint32_t rcc2)
|
||||
|
||||
static inline void lm3s_plllock(void)
|
||||
{
|
||||
uint32_t delay;
|
||||
volatile uint32_t delay;
|
||||
|
||||
/* Loop until the lock is achieved or until a timeout occurs */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user