RES: How to know if I'm compiling with the ERC32 or SIS BSP?
Fabrício de Novaes Kucinskis
fabricio at dea.inpe.br
Sat Mar 27 20:54:44 UTC 2010
Thanks Joel, that did the trick!
Fabrício.
> -----Mensagem original-----
> De: Joel Sherrill [mailto:joel.sherrill at oarcorp.com]
> Enviada em: sábado, 27 de março de 2010 13:51
> Para: Fabrício de Novaes Kucinskis
> Cc: rtems-users at rtems.org
> Assunto: Re: How to know if I'm compiling with the ERC32 or SIS BSP?
>
> On 03/27/2010 11:29 AM, Fabrício de Novaes Kucinskis wrote:
> >
> > Is it possible for my RTEMS application to know at compile-time if it
> > is running on an ERC32 or SIS BSP?
> >
> > I remember seeing something like this some time ago but just can't
> > find it now.
> >
> > I'd like to do something like this:
> >
> > #if (BSP_IS_ERC32)
> >
> > ERC32_MEC.Wait_State_Configuration |= 0x000f0000;
> >
> > #endif
> >
> When you build sis with --enable-rtemsbsp=sis, then you
> get ENABLE_SIS_QUIRKS defined.
>
> --joel
> >
> > Thanks in advance,
> >
> > Fabrício.
> >
More information about the users
mailing list