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.