[PATCH 02/12] score: Add ticks per second to configuration

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Apr 8 09:34:15 UTC 2016



On 08/04/16 11:22, Chris Johns wrote:
>
>>
>> I don't think its feasible to avoid <rtems/confdefs.h>. Its now the only
>> way to create a configuration.
>>
>
> Sorry, but I do not like confdefs getting these values in this way. 
> This is not a great long term solution. Easy to add very hard to remove.
>
> Maybe you need make some score level variables and compute the values 
> during configuration. 

In this case they are no longer read-only.

One way to test it would be to use

#define CONFIGURE_MICROSECONDS_PER_TICK 1000000000

and exploit the limited integer ranges. Doesn't work if we check this 
configuration error in <rtems/confdefs.h>.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the devel mailing list