bsp.am

Till Straumann strauman at slac.stanford.edu
Sun Dec 2 23:50:26 UTC 2007


Ralf Corsepius wrote:
> On Sun, 2007-12-02 at 12:20 -0800, Till Straumann wrote:
>   
>> I propose to introduce a CPP symbol
>>
>> __RTEMS_INSIDE_BSP__
>>
>> It should be defined only during compilation of the BSP so that
>> internal interfaces defined in some headers could be protected
>> from being exposed to application code.
>>
>> Does this make sense?
>>     
> IMO, no. All such defines do is to play down bad code and to cater bad
> programming practices (BSP API violations).
>
>
>   
So what do you suggest - two separate headers, one
for the public interface, a second one for BSP-internal
interfaces?

The technique of hiding internal interfaces by such a symbol
is already employed widely by the RTEMS kernel and
by the networking code.

T.
> Ralf
>
>
>   





More information about the users mailing list