This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Posting a SWI



Hi!

I am trying to post a SWI, but with no success. This is what I did: 

1. Set it up in the XGCONF. It results in the following codes in the cfg file:

var swi0Params = new Swi.Params();
swi0Params.instance.name = "swiMySwi";
swi0Params.priority = 8;
Program.global.swiMySwi = Swi.create("&MySwi", swi0Params);

2. Put these lines in the code:
#include <ti/sysbios/knl/Swi.h>
......
{
Swi_post(swiMySwi);
}

The compilor complains that swiMySwi is undefined. But if I define it in the code, then it complains that it is double defined. I am using BIOS6.32.05.54

Anyone can help?

BR
CJ.