[ECOS] Help with CDL - controlling the RTC_PERIOD value
Sergei Gavrikov
sergei.gavrikov@gmail.com
Tue Oct 11 18:18:00 GMT 2011
On Tue, 11 Oct 2011, Elad Yosef wrote:
> Hi,
> I'm trying to overwrite the CYGNUM_HAL_RTC_PERIOD user value in-case
> another option is enabled.
>
> For example :
> if test_mode = on
> CYGNUM_HAL_RTC_PERIOD = value from ecc file
> else
> CYGNUM_HAL_RTC_PERIOD = hard coded value
>
> Thanks
>
> Elad
Hi Elad,
If I understood your question correctly then you can use the ternary
conditional operator A ? B : C in your CDL expression
http://ecos.sourceware.org/docs-latest/cdl-guide/language.values.html#LANGUAGE.EXPRESSION
However, your target is CDL option CYGNUM_HAL_RTC_PERIOD. So, be careful
when you change its value as for some targets if the period needs to be
changed, and the clock's resolution needs to be adjusted accordingly
http://ecos.sourceware.org/docs-latest/ref/hal-clocks-and-timers.html
HTH
Sergei
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list