bradp Posted October 15, 2009 Posted October 15, 2009 I was working in the file “usrcode.c” and discovered that when I remove one of the default functions, like the one below, none of my user written functions will work. Why is this? double user_pid_ctrl(struct MotorData *Mptr) { return 0; }
bradp Posted October 15, 2009 Author Posted October 15, 2009 [quote='bradp' pid='216' dateline='1255621191'] I was working in the file “usrcode.c” and discovered that when I remove one of the default functions, like the one below, none of my user written functions will work. Why is this? double user_pid_ctrl(struct MotorData *Mptr) { return 0; } [/quote] This is caused by the default header file usrcode.h. Inside this file we have the following: double user_pid_ctrl(struct MotorData *Mptr); EXPORT_SYMBOL(user_pid_ctrl); Right now if you want to remove the reference to the PID you must also remove the reference in the header file. Go to usrcode.h and remove the above lines.
Recommended Posts