well, it was mostly a straight copy-n-paste. just defined a bunch of
functions following pin_alias and param_alias and creating
signal_alias for a new 'sig' type, as andy stated earlier. i partly
rewritten my configs using 'alias sig' . can't say that i'm completely
satisfied how they look now, but i need to experiment a bit to think
it thru....
but here it is. if someone think it is worth refining - please, comment

/dmitry

On Mon, May 2, 2016 at 11:57 PM, John Kasunich <[email protected]> wrote:
>
>
> On Mon, May 2, 2016, at 04:37 PM, Dmitry Yurtaev wrote:
>
>> > # these lines determine pin function
>> > alias gpio0 x-neg-limit
>> > alias gpio1 x-pos-limit
>>
>> i suppose
>>
>> alias net gpio0 x-neg-limit
>> alias net gpio1 x-pos-limit
>>
>> to match the existing syntax "alias type name alias"
>>
>
> Yes, exactly.  I didn't read remember if the type was needed
> and didn't read the documentation in enough detail.  It is good
> that the existing syntax includes the type, otherwise the
> implementation could be ambiguous.
>
> HAL has separate name-spaces for pins, parameters, signals,
> functions, and threads.  In hind-sight, that was probably a bad
> idea, it allows to have multiple things with the same name and
> thus forces the user to specify the type of thing he is referring to.
> Too late to change it now, it would break any config that re-uses
> names.  So it goes.
>
>> i will check the source and if it can be done without much
>> trouble i can come up with a patch.
>
> The original alias command was added in a series of patches
> from 18-Nov-2008 thru 29-Nov-2008, looking at those diffs
> might be helpful.  It looks like I went down at least one blind
> alley, on 24-Nov I reverted a bunch of work and started over.
>
> --
>   John Kasunich
>   [email protected]
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Emc-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-developers

Attachment: 0001-hal-add-signal-aliases.patch
Description: Binary data

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to