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.

How to read a digital signal from GPIO pins ,trying to interface pir sensor.

Other Parts Discussed in Thread: CC3200

i am trying to interface an pir sensor with cc3200 .whenever a person  moves ,his motion is detected through pir sensor and it gives a logic high signal.

when trying to interface it with code below         ( i used the blinky  code example ,where signal upon detection led blinks)

GPIO_IF_LedConfigure(LED1|LED2|LED3);

GPIO_IF_LedOff(MCU_ALL_LED_IND);
unsigned char g_ucPIN21gpio;
unsigned int ulPort = 0;

#define PIN15gpio 6

GPIO_IF_GetPortNPin(PIN15gpio, &ulPort, &g_ucPIN21gpio);

//
// Start the LEDBlinkyRoutine
//
while(1)
{
if(GPIO_IF_Get(PIN15gpio, ulPort, g_ucPIN21gpio)==1)
LEDBlinkyRoutine();
else GPIO_IF_LedOff(MCU_ALL_LED_IND);
}
return 0;

whenever i connect  the wire from the sensor output to board there is no change ,also i am unable to debug it again as there is an error:connecting to the target.