hi Alan,
I open your project with CW10.6. generate pe code then build. I saw "expected identifier before numeric constant" error stopped at ERR_OK line in enum definition in msCANdrv.h.
the problem is ERR_OK is already defined in PE_Error.h:
| #define ERR_OK | 0x00U /*!< OK */ |
thus if you define it again in enum format in msCANdrv.h. CW produces error.
does this answer your question? if yes, please click the Correct Answer button. Thank you!
Have a great day,
Zhang Jun