when I call sd_power_gpregret_set in gpiote handler function ,I got HardFault, why?
when I call sd_power_gpregret_set in gpiote handler function ,I got HardFault, why?
I find that nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY)
in file nrf_drv_gpiote.c
priority define in the nrf_drv_config.h
#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH
I find that nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY)
in file nrf_drv_gpiote.c
priority define in the nrf_drv_config.h
#define GPIOTE_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_HIGH