- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
04-21-2017 02:33 AM - last edited on 08-14-2017 04:52 AM by Siliconlabs
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; ...... ......
04-21-2017 03:51 AM
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