Page 1 of 1

Using properties in simple project

Posted: Tue Sep 24, 2019 4:27 pm
by faveremario
Hi all

I have a small project where I teach my students how to use properties to make a project more readable.
What it does : Rood & Zwart are inputs (push-butons) ands ledrood & zwart are outputs.
The lines compile to :
SET_PORT_PIN(D, 1, GET_PORT_PIN(B, 5));
SET_PORT_PIN(D, 0, GET_PORT_PIN(B, 4));
wich looks fine to me!
However, when I compile the properties.fcfx there are errors undefined identifier "FCP_TRIS_B" .
Very strange !

When I separate the commands as i did in properties correct.fcfx, the project compiles OK, but then you lose quite some properties-power...

So : why can't we read & write on the same command ?
Thanks in advance to make the light shine in the dark :)

Re: Using properties in simple project

Posted: Tue Sep 24, 2019 5:30 pm
by Benj
Hello,

Thanks for letting us know of the problem.

I've figured out a solution but it's not ideal as it will break the core functionality on other devices.

I'll keep investigating. It's like the pre-processor is missing the pre-processor substitution for the pin read registers, maybe because it's already nested inside the pin write.