[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RES: How to know if I'm compiling with the ERC32 or SIS BSP?
- Date: Sat, 27 Mar 2010 17:54:44 -0300
- From: fabricio at dea.inpe.br (Fabrício de Novaes Kucinskis)
- Subject: RES: How to know if I'm compiling with the ERC32 or SIS BSP?
Thanks Joel, that did the trick!
> -----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.
> > Thanks in advance,
> > Fabr?cio.