Other Parts Discussed in Thread: C2000WARE
Hi folks
Im trying to initialize a global variable on my .cla file by using a low priority task (task8), and then continuously toggle this variable on Task1
My .cla file looks like this:
// Included Files
#include "cla_sqrt_shared.h"
#include "F28x_Project.h"
// Globals
int status;
__interrupt void Cla1Task1 ( void )
{
__mdebugstop();
if(status == 0)
{
GpioDataRegs.GPADAT.bit.GPIO13=1;
status = 1;
}
if(status == 1)
{
GpioDataRegs.GPADAT.bit.GPIO13=0;
status = 0;
}
}
__interrupt void Cla1Task8 ( void )
{
__mdebugstop();
status = 1;
}
But while on debug (CCS v7) I noticed that "status" changes only when I force Cla1Task8, but when I call Cla1Task8 it does not.
On my main.c file I only call Cla1Task8 once, right before I enter a loop where Task1 is repeatedly triggered after a short delay.
for(;;)
{
Cla1ForceTask1andWait();
//
// Delay for a bit.
//
DELAY_US(1000*500);
}
Is it possible to do that? What do I need to do to get that working?