Accessing PRT0DR or Other Registers in Compiler? | Cypress Semiconductor
Support & Community
Accessing PRT0DR or Other Registers in Compiler?
Last Updated: February 28, 2011
When I write reg[PRT0DR] I get the error message: Undefined symbol PRT0DR.
Add the include statement to include m8c.inc file in your code.
This will let the compiler see the register name definitions in the M8c.inc file.