[ECOS] Re: AT91SAM7SE - multiple defintion of CYGNUM_HAL_RTC_PERIOD
Sat Sep 5 16:18:00 GMT 2009
Thanks for the response. That caused me to have another look at my board
package. Comparing it to the at91sam7sek I see that I was not properly
including hal_arm_at91sam7.h in the package CDL's define_proc..
The build is completely clean now.
> -----Original Message-----
> From: firstname.lastname@example.org [mailto:ecos-discuss-
> email@example.com] On Behalf Of John Dallaway
> Sent: Saturday, September 05, 2009 1:35 AM
> To: firstname.lastname@example.org
> Cc: email@example.com
> Subject: [ECOS] Re: AT91SAM7SE - multiple defintion of
> Brian Karr wrote:
> > Greetings, first post from a long-time lurker on the list.
> Hello, Brian.
> > After configuring for EXTCLOCK and setting
> > CYGNUM_HAL_ARM_AT91_CLOCK_OSC_MAIN to 22579000, during the build I get
> > multiple definitions of CYGNUM_HAL_RTC_PERIOD in the auto-generated
> > pkgconf/kernel.h and pkgconf/hal_arm_at91sam7.h
> I cannot reproduce the multiple definition from current eCos CVS using
> the at91sam7sek target and setting CYGNUM_HAL_ARM_AT91_CLOCK_TYPE ==
> From system.h:
> > #define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_arm_at91sam7sek.h>
> From pkgconf/hal_arm_at91sam7sek.h:
> > #include <pkgconf/hal_arm_at91sam7.h>
> From pkgconf/hal_arm_at91sam7.h:
> > #define CYGNUM_HAL_RTC_CONSTANTS 1
> > #define CYGNUM_HAL_RTC_NUMERATOR 1000000000
> > #define CYGNUM_HAL_RTC_NUMERATOR_1000000000
> > #define CYGNUM_HAL_RTC_DENOMINATOR 100
> > #define CYGNUM_HAL_RTC_DENOMINATOR_100
> > #define CYGNUM_HAL_RTC_PERIOD 15000
> > #define CYGNUM_HAL_RTC_PERIOD_15000
> So CYGNUM_HAL_RTC_NUMERATOR is defined by the variant HAL and this
> suppresses the fallback definition of CYGNUM_HAL_RTC_PERIOD in kernel.h.
> Try saving your configuration to a new location and building from scratch.
> I hope this helps...
> John Dallaway
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss