Calling of nrf_drv_lpcomp_enable() increases custom device's power consumption from less than 50 uA to 600 uA.
Calling of nrf_drv_lpcomp_enable() increases custom device's power consumption from less than 50 uA to 600 uA.
After discovering this issue - no, because this code is for sleep mode. I exclude all other parts of code by placing if(1) instead of function that checks if sleep mode needs, so, the code for nrf_drv_gpiote_init() doesn't exist completely (watched it in the debugger). But I don't know if GPIOTE is used by SPI or other nrf driver funcs. CS pin for SPI set and cleared manually in my code without GPIOTE.
ps. this was an answer on using GPIOTE then (that was in up comment before)
After discovering this issue - no, because this code is for sleep mode. I exclude all other parts of code by placing if(1) instead of function that checks if sleep mode needs, so, the code for nrf_drv_gpiote_init() doesn't exist completely (watched it in the debugger). But I don't know if GPIOTE is used by SPI or other nrf driver funcs. CS pin for SPI set and cleared manually in my code without GPIOTE.
ps. this was an answer on using GPIOTE then (that was in up comment before)