Skip to content
Snippets Groups Projects
Commit e977b062 authored by patacongo's avatar patacongo
Browse files

Need to wait not busy in another place

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3070 42af7a65-404d-4744-a932-0658087f49c3
parent ed36c6ca
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ void up_timerinit(void)
putreg32(regval, AVR32_PM_PBAMASK);
#endif
/* Configure the RTC. Source == 32KHz OSC32 */
/* Configure the RTC. Source == 32KHz OSC32 or RC OSC */
rtc_waitnotbusy();
#ifdef AVR32_CLOCK_OSC32
......@@ -217,8 +217,9 @@ void up_timerinit(void)
/* Set the counter value to zero and the TOP value to AVR32_TOP (see above) */
rtc_waitnotbusy();
putreg32(0, AVR32_RTC_VAL);
putreg32(AV32_TOP, AVR32_RTC_TOP);
rtc_waitnotbusy();
putreg32(0, AVR32_RTC_VAL);
/* Attach the timer interrupt vector */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment