CONFIGURE_NUMBER_OF_DYNAMIC_DRIVERS in conf.t
Gedare Bloom
gedare at rtems.org
Tue Jul 30 15:18:01 UTC 2013
We should have a process to deprecate CONFIGURE options, although
usually we will just check if the user defines it and otherwise
provide a definition, which in this case will be the sum of the static
and dynamic configuration options(with dynamic set to 0 if undefined)
On Tue, Jul 30, 2013 at 11:13 AM, Joel Sherrill
<joel.sherrill at oarcorp.com> wrote:
> On 7/30/2013 10:08 AM, Shubham Somani wrote:
>
> Hi,
>
> Currently we can get the maximum number of drivers using
> sizeof(ARRAY)/sizeof(ELEMENT) by default. But these are only for the static
> drivers.
>
> Should we add a new macro in conf.t for CONFIGURE_NUMBER_OF_DYNAMIC_DRIVERS
> in case the user wishes for more?
>
> FWIW I suggested this. currently if the user wants to have
> dynamically installed drivers, they have to define
> CONFIGURE_MAXIMUM_DRIVERS to be greater than the
> number of statically configured device drivers.
>
> This would make a logical distinction between the number
> of static and dynamic drivers.
>
> I might also be prone to obsolete CONFIGURE_MAXIMUM_DRIVERS.
> Add code to give the user an error with instructions.
>
> Cheers,
> Shubham
>
>
>
> --
> Joel Sherrill, Ph.D. Director of Research & Development
> joel.sherrill at OARcorp.com On-Line Applications Research
> Ask me about RTEMS: a free RTOS Huntsville AL 35805
> Support Available (256) 722-9985
>
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
>
More information about the devel
mailing list