PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Apr 23, 2013 1:45 pm |
|
|
Quote: | can-mcp2510.c & can-mcp251x.c. which one will be suitable for my project? |
Those two files are the same except for a few differences, as explained below:
In vs. 4.120, some lines were added or changed in can-mcp2510.c.
CCS didn't change can-mcp251x.c. They haven't made any other
changes since then.
The following lines were added or changed in can_set_mode():
Code: |
struct struct_CANSTAT new_CANSTAT;
memset(&new_CANSTAT,mcp2510_read(CANSTAT),1);
} while (new_CANSTAT.opmode != mode);
|
The following lines were added to can_init():
Code: |
output_low(EXT_CAN_SI);
output_low(EXT_CAN_SCK);
output_float(EXT_CAN_SO);
|
So assuming you have vs. 4.141 or a version near to that, I would say
you should use can-mcp2510.c, since it has the latest revisions from CCS. |
|