This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I'm looking to modify some registers using this kind of format:
P4DIR |= (PIN2 + PIN3)
However, the PINx gives me the "Identifier PINx is undefined" error. What is the proper include I must have? Thank you!
Hey Victor,
There is no actual definition for PINx (PIN1, PIN2, etc..), the most common way to use PxDIR, PxOUT, etc. is to use the BITx definitions:
P4DIR |= (BIT2 + BIT3)
Best Regards,
Matt J
IIRC, the 8032 has its port pins bit-addressable, so there migt even be a 'register' definition for each individual pin on soem compilers.Victor Youk54486 said:I must have been getting confused with another system.
On MSP, PINx in a port is always equal to BITx, so there never was any need to define PINx in addition to the already existing BITx symbols.
**Attention** This is a public forum