Lines Matching +full:gpio +full:- +full:n
4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/drivers/gpio.h>
21 #error "Unsupported: wakeup-button alias is not defined"
36 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
38 printk("Wake up from GPIO %d\n", pin); in main()
40 printk("Wake up from GPIO\n"); in main()
51 int pin = __builtin_ffsll(wakeup_pin_mask) - 1; in main()
53 printk("Wake up from GPIO %d\n", pin); in main()
55 printk("Wake up from GPIO\n"); in main()
61 printk("Wake up from timer.\n"); in main()
65 printk("Not a deep sleep reset\n"); in main()
72 printk("Enabling timer wakeup, %ds\n", wakeup_time_sec); in main()
81 printk("Enabling EXT1 wakeup on pins GPIO%d, GPIO%d\n", in main()
86 /* enable pull-down on ext1 pins to avoid random wake-ups */ in main()
94 printk("Error: wakeup button device %s is not ready\n", wakeup_button.port->name); in main()
101 printk("Error %d: failed to configure %s pin %d\n", in main()
102 ret, wakeup_button.port->name, wakeup_button.pin); in main()
107 printk("Enabling GPIO wakeup on pins GPIO%d\n", wakeup_button.pin); in main()
110 printk("Powering off\n"); in main()