Help with Error on ECAN.h - 18f2580
Some years ago I made a small project using 18F2580 on ECAN to send and receive CAN messages.
Just a simple program, and it worked well.
Now I need to use CAN again and I was implementing this system again.
However when compiling I have 2 errors. I searched on the internet and it seems this errors are present because now I use MPLAB X. Some years ago with another version of MPLAB there was no errors.
Can anyone help solving this ?
ECAN.h:1643: error: (984) type redeclared
ECAN.h:1643: error: (1098) conflicting declarations for variable "RXB1CONbits" (ECAN.h:1643)
Attached I send you ECAN.h file.
Thanks for your help