Re: button1 GPIOTE interrupt enable for NRF52840_PCA10056
Why don’t you use the existing GPIO driver?
It works with the button sample.
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...] On Behalf Of Vikrant More
Sent: 28 November 2017 14:32
To: zephyr-devel@...; zephyr-users@...
Subject: [Zephyr-devel] button1 GPIOTE interrupt enable for NRF52840_PCA10056
I want to enable GPIOTE interrupt for for Button1. For that I write
NRF_P0->DIR |= 0x0001E000; // for LEDs
NRF_P0->PIN_CNF=0x0000000C; // for making P0.11 as input
I am able to compile code successfully & as per my understanding after pressing Button1,
Led4 should toggle on every click.
But I think interrupt is not get executed.
Could anybody help me to solve this issue ?
I also found this link http://docs.zephyrproject.org/kernel/other/interrupts.html
How to rewrite logic as per it ? how to modify prj.conf ?