Fix heap allocation and RTC not-busy wait

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3065 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2010-10-31 15:56:47 +00:00
parent e1d6704c7b
commit 2d698d3743
2 changed files with 4 additions and 5 deletions

View File

@ -119,7 +119,7 @@
static void rtc_waitnotbusy(void)
{
while ((getreg32(AVR32_RTC_CTRL) & RTC_CTRL_BUSY) == 0);
while ((getreg32(AVR32_RTC_CTRL) & RTC_CTRL_BUSY) != 0);
}
/****************************************************************************

View File

@ -68,10 +68,9 @@
* Name: up_allocate_heap
*
* Description:
* The heap may be statically allocated by
* defining CONFIG_HEAP_BASE and CONFIG_HEAP_SIZE. If these
* are not defined, then this function will be called to
* dynamically set aside the heap region.
* The heap may be statically allocated by defining CONFIG_HEAP_BASE and
* CONFIG_HEAP_SIZE. If these are not defined, then this function will be
* called to dynamically set aside the heap region.
*
****************************************************************************/