Anonymous
Not applicable
Aug 07, 2014
12:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 07, 2014
12:07 PM
In SDK 2.1.0 in hello_client app I noticed that interrupt handler is called always twice on very event. Why is that ?
Hello_sensor app from the same SDK does not have this issue.
The button in hello_client is configured additionally with:
GPIO_BOTHEDGE_INT
and as a result the interrupt handler is called twice when the button is pressed and twice when released.
Solved! Go to Solution.
1 Solution
Aug 15, 2014
12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 15, 2014
12:10 PM
In hello_client_create(), remove calls to bleprofile_Init() and bleprofile_GPIOInit(). blecen_Create() called later invokes these. This will cause two callbacks (both pointing to the same callback function) to be registered with the GPIO driver for interrupts on the 'button' GPIO.
3 Replies