Author Topic: something error #define CAN_INTERFACE!  (Read 8574 times)

Offline tr111

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
something error #define CAN_INTERFACE!
« on: November 14, 2007, 08:42:42 AM »
if #define CAN_INTERFACE!
use the CodeWarrior IDE!

Warning : function has no prototype
M5223X.c line 3125   extern fnDumpCAN(void) 

Link Error   : Undefined : "fnOpenCAN"
Referenced from "fnOpen" in Driver.c

Link failed.

Offline tr111

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: something error #define CAN_INTERFACE!
« Reply #1 on: November 14, 2007, 09:18:24 AM »
I find why!
  add the can_drv.c to the project!
  add static to the QUEUE_TRANSFER entry_can
 static  QUEUE_TRANSFER entry_can(unsigned char channel, unsigned char *ptBuffer, QUEUE_TRANSFER Counter, unsigned char ucCallType, QUEUE_HANDLE DriverID)!