Hi TI,
I can read and write the signal of GPIO DIO6(red) and DIO7(green) for led from your example code of "gpiointerrupt".
Now, I have set up my hardware on GIPO(21)[DIO 21] and try to read it. But I always get 0 from the GPIO of 21. I think the value of GPIO(21) need to be 1.
Could you help me on it?
I also posted my source code, please refer to my souce code. If you want me to provide more information, please let me know.
void *mainThread(void *arg0)
{
............................
uint_fast8_t temp_LED1=0;
uint_fast8_t temp_LED0=0;
//unsigned int temp;
uint_fast8_t temp;
//unsigned int ledPinValue;
//Display_printf(display, 0, 0, "enter gpiopin function\n");
/* Call driver init functions */
GPIO_init();
/* Turn on user LED */
GPIO_write(Board_GPIO_LED0, Board_GPIO_LED_ON);
temp_LED1=GPIO_read(Board_GPIO_LED1);
temp_LED0=GPIO_read(3);
temp=GPIO_read(Board_DIO21);
printf("temp_LED1 value=%d\n",temp_LED1);
printf("temp_LED0 value=%d\n",temp_LED0);
//printf("first temp9 value=%d\n",temp);
//ledPinValue=PIN_getOutputValue(Board_PIN_LED0);
//temp=PIN_getOutputValue(Board_DIO21);
printf("temp=%d\n",temp);
.............
}