Driver to use GPIOTE port event to detect whenever any of multiple GPIO pins are at a specified polarity. This module can be used to wake the nRF SoC from the SYSTEM OFF mode and consumes about 1 uA of current.
More...
|
struct | gpio_level_cfg |
| The configuration parameter for each of the GPIO pin that is being configured in the GPIO level handler module. More...
|
|
|
void | gpio_level_init (gpio_level_cfg *cfg, uint32_t cfg_num, uint32_t irq_priority) |
| Initializes the GPIO level handler module by taking in the the configurations of all the GPIOs that need to be monitored. More...
|
|
◆ gpio_level_init()
void gpio_level_init |
( |
gpio_level_cfg * |
cfg, |
|
|
uint32_t |
cfg_num, |
|
|
uint32_t |
irq_priority |
|
) |
| |
- Parameters
-
cfg | A pointer to an array of GPIO configurations which need to be configured to generate port events and call the appropriate handler |
cfg_num | The size of the array |
irq_priority | The priority of the GPIOTE port event IRQ handler |
TODO revert the GPIO configs of the previously configured pins
Definition at line 31 of file gpio_level_handler.c.