This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can I use app_gpiote with the S110 BLE stack?

I see that the source code of app_gpiote.c uses NVIC_... functions to handle the interrupts:

app_gpiote_init.c, line 160...:

NVIC_ClearPendingIRQ(GPIOTE_IRQn);
NVIC_SetPriority(GPIOTE_IRQn, APP_IRQ_PRIORITY_HIGH);
NVIC_EnableIRQ(GPIOTE_IRQn);

However, as far as I can tell, the S110 stack requires the use of sd_nvic_... functions for doing this.

What is the best practice for using app_gpiote.c in an S110 application? Modify the app_gpiote.c source to use the sd_nvic functions? Or just not use it all together?

Thanks for any input,

Erland

Related