µTasker Forum

µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: tr111 on November 14, 2007, 08:42:42 AM

Title: something error #define CAN_INTERFACE!
Post by: tr111 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.
Title: Re: something error #define CAN_INTERFACE!
Post by: tr111 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)!