We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f562fb commit 97b7039Copy full SHA for 97b7039
tests/benchmarks/current_consumption/gpio_idle/prj.conf
@@ -3,3 +3,4 @@ CONFIG_CONSOLE=n
3
CONFIG_UART_CONSOLE=n
4
CONFIG_SERIAL=n
5
CONFIG_POWEROFF=y
6
+CONFIG_PRINTK=y
tests/benchmarks/current_consumption/gpio_idle/src/main.c
@@ -39,7 +39,7 @@ int main(void)
39
printk("Could not configure sw GPIO interrupt (%d)\n", ret);
40
return 0;
41
}
42
- gpio_init_callback(&gpio_cb, my_gpio_callback, 0xFFFF);
+ gpio_init_callback(&gpio_cb, my_gpio_callback, BIT(sw.pin));
43
gpio_add_callback(sw.port, &gpio_cb);
44
45
while (1) {
0 commit comments