This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: Re: AT91SAM7SE - multiple defintion of CYGNUM_HAL_RTC_PERIOD
- From: "Brian Karr" <brian at briankarr dot com>
- To: "'John Dallaway'" <john at dallaway dot org dot uk>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Sat, 5 Sep 2009 09:18:24 -0700
- Subject: RE: [ECOS] Re: AT91SAM7SE - multiple defintion of CYGNUM_HAL_RTC_PERIOD
- References: <9BE2BAFF77164C7996F20E7D55A5D4C6@brianmbp> <4AA222B1.9060406@dallaway.org.uk>
- Reply-to: <brian at briankarr dot com>
Hi John,
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.
Cheers,
Brian
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-
> owner@ecos.sourceware.org] On Behalf Of John Dallaway
> Sent: Saturday, September 05, 2009 1:35 AM
> To: brian@briankarr.com
> Cc: ecos-discuss@ecos.sourceware.org
> Subject: [ECOS] Re: AT91SAM7SE - multiple defintion of
CYGNUM_HAL_RTC_PERIOD
>
> 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 ==
> "EXTCLOCK".
>
> 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