I am struggling with reading state of GPIO on thunderboard sense.
I want to read state of PF3 which goes to expansion header 7
I want to wait till the GPIO pin goes low and carry out further work as soon as pin goes low.
I dont need interrupt for this can i wait infinitely till the pin goes low(i know its bad programming practice but still) ?
i want to do something like below
while(gpio_is_not_low); ...... ..... do work further; ...... ......
Do you want to create a new empty application, or do you want to modify the ThunderBoard Sense sample application?
In the first case I suggest you using one of the following solutions:
In the second case, add your status check to connectionActiveIteration() in radio_ble.c