This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_GPIO_NRF_INT_EDGE_USING_SENSE

Edge interrupts using SENSE

Type: bool

Help

Enable GPIO edge interrupts implementation using GPIO SENSE, which is
a level interrupt mechanism. Conversion from level to edge interrupts
notification happens in GPIO driver, so it is transparent to GPIO
consumers after switching from GPIOTE mechanism.

Use this option as an alternative to GPIOTE event mechanism. According
to product specifications and erratas to some nRF MCUs, using GPIOTE
results in increased current consumption in System ON Idle and in
conjunction with SPI/TWI peripherals. Selecting this option allows to
reduce current for those cases.

Using this option additionally allows detecting state changes of pins
configured as output, which might be handy for some applications.

Direct dependencies

<choice: nRF GPIO edge interrupts mechanism>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At drivers/gpio/Kconfig.nrfx:43

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:34drivers/gpio/Kconfig:42

Menu path: (Top) → Device Drivers → GPIO Drivers → nRF GPIO driver → nRF GPIO edge interrupts mechanism

config GPIO_NRF_INT_EDGE_USING_SENSE
    bool "Edge interrupts using SENSE"
    depends on <choice>
    help
      Enable GPIO edge interrupts implementation using GPIO SENSE, which is
      a level interrupt mechanism. Conversion from level to edge interrupts
      notification happens in GPIO driver, so it is transparent to GPIO
      consumers after switching from GPIOTE mechanism.

      Use this option as an alternative to GPIOTE event mechanism. According
      to product specifications and erratas to some nRF MCUs, using GPIOTE
      results in increased current consumption in System ON Idle and in
      conjunction with SPI/TWI peripherals. Selecting this option allows to
      reduce current for those cases.

      Using this option additionally allows detecting state changes of pins
      configured as output, which might be handy for some applications.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)