Hello,
I am using ble_app_uart example in nRF SDK 15.2.0 in which I have included "nrf_drv_gpiote.h" and initialized gpiote as follows:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static void gpio_init(void)
{
ret_code_t err_code;
err_code = nrf_drv_gpiote_init();
APP_ERROR_CHECK(err_code);
}
/**@brief Application main function.
*/
int main(void)
{
bool erase_bonds;
// Initialize.
uart_init();
log_init();
timers_init();
buttons_leds_init(&erase_bonds);
After making this change, the application no longer works. On looking at some of the existing answers,I understand that the GPIOTE interrupt needs to be at a lower priority than softdevice interrupt. How do I do this and make the application work with GPIOTE interrupt?
Thanks