How to know if I'm compiling with the ERC32 or SIS BSP?

Joel Sherrill joel.sherrill at OARcorp.com
Sat Mar 27 16:50:42 UTC 2010


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