Hello
I checked on a simple project.
Following code snippet can be build without any trouble.
#pragma interrupt called
void QD1_OnHome(void)
{
if(test)
{
/* Write your code here ... */
stop_motor();
}
There should be something else some other places.
I would suggest you to submit a service Request through our web site for that.
Click
here to submit a SR.
Make sure to attach the whole project reproducing the trouble (.mcp, all source and header files, ....) to your SR.
Also make sure to attach Installed product information to the SR.
To retrieve that info:
- Start CodeWarrior
- Select Help -> About Freescale CodeWarrior
- Click on "Install Products"
- Click on Save as to save the information in a text file.
CrasyCat