Content originally posted in LPCWare by rjm on Fri Nov 06 00:56:07 MST 2015
Thanks for the comments. This made definitely clear that FullCAN is more sophisticated than C_CAN.
Since a migration of existing FullCAN code was necessary, I started to create a wrapper code which leaves virtually all of the application code for FullCAN unchanged.
For this to be effective, a change in the basic data structure rom_can_15xx.h is necessary. Actually, part of the data structure usese an anonymous union in order to facilitate element names that are typically used in FullCAN code. The changes are compatible with existing C_CAN code.
The attachment represents a test project for LPCxpresso. A c_can.c has been constructed from existing c_can code, and does standard c_can stuff, as well as init.
fullcan_wrap is the wrapper itself. Here, a test main function is included - serves as black box test function.
A git patch file for the CAN-ROM library is included.