Reply
Posts: 24
Registered: ‎12-16-2016

Thunderboard sense GPIO

Dear experts,

 

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;
......
......

Please help

 

It’s not the years in your life that count. It’s the life in your years.
Posts: 93
Registered: ‎09-21-2016

Re: Thunderboard sense GPIO

 

Hi,

 

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:

http://community.silabs.com/t5/Bluetooth-Wi-Fi-Knowledge-Base/Scheduling-application-tasks-while-run...

 

In the second case, add your status check to connectionActiveIteration() in radio_ble.c 

 

Best Regards,

Arnold