Still no luck. I am baffled (I have created drivers with hundreds of pins, this should be trivial).
Latest iteration locked my Virtual Machine completely. I am beginning to wonder if it is a VM problem. I will have to try doing this on the real EMC2 dev machine, not in a VM while I play around on the internet on my Mac.
Trust me, it isn't difficult, I am just getting too distracted and messing up.
It basically comes down to one mis-placed "*" in the file. Normally the HAL pin pointers live in a struct, and you hal_malloc them. I am trying to avoid the struct definition because it it only one pin, but perhaps I have to do it that way.
Tomorrow, I promise.