Home
last modified time | relevance | path

Searched refs:button_cb (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/samples/bluetooth/mesh/src/
Dmicrobit.c51 static struct gpio_callback button_cb; in configure_button() local
56 gpio_init_callback(&button_cb, button_pressed, BIT(button.pin)); in configure_button()
58 gpio_add_callback(button.port, &button_cb); in configure_button()
Dboard.c51 static void button_cb(const struct device *port, struct gpio_callback *cb, in button_cb() function
100 gpio_init_callback(&gpio_cb, button_cb, BIT(BUTTON0_PIN)); in button_init()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dapp_gpio.c58 static struct gpio_callback button_cb[4]; in app_gpio_init() local
81 gpio_init_callback(&button_cb[i], button_pressed, in app_gpio_init()
83 gpio_add_callback(button_device[i].port, &button_cb[i]); in app_gpio_init()
/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmicrobit.c241 static struct gpio_callback button_cb; in configure_buttons() local
261 gpio_init_callback(&button_cb, button_pressed, in configure_buttons()
263 return gpio_add_callback(button_a.port, &button_cb); in configure_buttons()
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c270 static struct gpio_callback button_cb; variable
591 gpio_init_callback(&button_cb, button_pressed, in main()
602 gpio_add_callback(sw_device[i].port, &button_cb); in main()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c505 static struct gpio_callback button_cb; in configure_button() local
516 gpio_init_callback(&button_cb, button_interrupt, BIT(sw0_gpio.pin)); in configure_button()
518 gpio_add_callback(sw0_gpio.port, &button_cb); in configure_button()