On 16 December 2013 20:53, Ted Hyde <laser...@gmail.com> wrote:

> Greets - can Unions of custom types be used in a comp? (actual .comp for
> use with the Comp generator, not a native c file)


I think so, but you probably have to insert them with an include.
It can be useful to look at the intermediate C code to see what is being
created.

include myunion;
variable myunion myinstance;

(or something like that).

This is not the same as a #include at the beginning of the C-code, an
"include" in the before-the-;; section is inserted early enough for the
types to be available to the pin parser.

No, it isn't documented.

src/hal/drivers/mesa_7i65.comp and mesa_uart.comp both use it, as does
pluto servo.

-- 
atp
If you can't fix it, you don't own it.
http://www.ifixit.com/Manifesto
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to