This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Assign name to pin

Hi all,
I searched the forum before starting
this thread, but I couldn't find a
satifying answer to my question.

here's my question:
I'm using keil uVision2 and the EZ-USB FX
dev kit. This kit has 6 IO ports on it.
I want to assign a name to each pin
of the IO ports.
This is what I tried so far:
...
#define D0 OUTB.0
main()
{
D0 = 1;
}
...
I get 2 errors:
error C141: syntax error near '.0'
error C213: left side of asn-op not an lvalue

As far as I remember I used this code in
a previous project, and it worked. But now it doesn't :(

anyone who knows what goes wrong?

kind regards,
Chris