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.

LAUNCHXL2-TMS57012: gioGetBit function not working

Part Number: LAUNCHXL2-TMS57012
Other Parts Discussed in Thread: HALCOGEN, TMS570LS1224

Im having troubles reading a digital input with my TMS570LS1224. I already configured the gio and HET drivers on Halcogen, after importing the project to CCS and modifying the main this is what it looks like:

#include "sys_common.h"
#include "het.h"
#include "gio.h"


int main(void)
{
gioInit();
bool A=0;
hetSIGNAL_t pwmSignal;
gioSetBit(gioPORTA,0U,1);
A=gioGetBit(gioPORTA,1U);
if(A==0)
{
hetInit();
pwmSignal.duty = 80;
pwmSignal.period = 800;
pwmSetSignal(hetRAM1, pwm0, pwmSignal);
pwmStart( hetRAM1, pwm0);
}

return 0;
}

 

I had no troubles with the pwm part of the code, but when I add the "gioGetBit" funtion it does not work. I am trying to read the signal from gioportA 1U.

Is it possible that I missed some configuration on Halcogen? or is there something wrong with the main code on CCS?