Home
last modified time | relevance | path

Searched refs:button_pressed (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/samples/bluetooth/mesh/src/
Dboard.c79 static int button_init(struct k_work *button_pressed) in button_init() argument
98 button_work = button_pressed; in button_init()
109 int board_init(struct k_work *button_pressed) in board_init() argument
118 return button_init(button_pressed); in board_init()
Dmicrobit.c32 static void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
56 gpio_init_callback(&button_cb, button_pressed, BIT(button.pin)); in configure_button()
Dmain.c327 static void button_pressed(struct k_work *work) in button_pressed() function
417 k_work_init(&button_work, button_pressed); in main()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/peripheral/src/
Dmain.c39 static void button_pressed(const struct device *dev, struct gpio_callback *cb, uint32_t pins) in button_pressed() function
93 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin)); in setup_btn()
/Zephyr-latest/samples/basic/button/src/
Dmain.c39 void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
70 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin)); in main()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dapp_gpio.c16 static void button_pressed(const struct device *dev, in button_pressed() function
81 gpio_init_callback(&button_cb[i], button_pressed, in app_gpio_init()
/Zephyr-latest/samples/bluetooth/encrypted_advertising/central/src/
Dmain.c45 static void button_pressed(const struct device *dev, struct gpio_callback *cb, uint32_t pins) in button_pressed() function
99 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin)); in setup_btn()
/Zephyr-latest/samples/boards/bbc/microbit/sound/src/
Dmain.c50 static void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
107 gpio_init_callback(&button_cb_data, button_pressed, in main()
/Zephyr-latest/samples/boards/st/power_mgmt/standby_shutdown/src/
Dmain.c57 void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
136 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin)); in main()
/Zephyr-latest/samples/boards/nordic/nrfx_prs/src/
Dmain.c42 static K_SEM_DEFINE(button_pressed, 0, 1);
48 k_sem_give(&button_pressed); in sw0_handler()
55 k_sem_give(&button_pressed); in sw1_handler()
379 if (k_sem_take(&button_pressed, K_MSEC(5000)) != 0) { in main()
/Zephyr-latest/samples/bluetooth/mesh_demo/src/
Dmicrobit.c47 static void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
261 gpio_init_callback(&button_cb, button_pressed, in configure_buttons()
/Zephyr-latest/samples/bluetooth/mesh_provisioner/src/
Dmain.c322 static void button_pressed(const struct device *dev, struct gpio_callback *cb, uint32_t pins) in button_pressed() function
347 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin)); in button_init()
/Zephyr-latest/samples/boards/bbc/microbit/pong/src/
Dmain.c403 static void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
514 gpio_init_callback(&button_cb_data, button_pressed, in configure_buttons()
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/
Dmain.c416 static void button_pressed(const struct device *dev, struct gpio_callback *cb, in button_pressed() function
591 gpio_init_callback(&button_cb, button_pressed, in main()
/Zephyr-latest/samples/bluetooth/central_otc/src/
Dmain.c181 static void button_pressed(const struct device *dev, struct gpio_callback *cb, uint32_t pins) in button_pressed() function
218 gpio_init_callback(&button_cb_data, button_pressed, 0); in configure_buttons()
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/
DREADME.rst33 the button_pressed() interrupt handler. An interrupt within 250ms of the
/Zephyr-latest/doc/services/smf/
Dindex.rst466 void button_pressed(const struct device *dev,
498 gpio_init_callback(&button_cb_data, button_pressed, BIT(button.pin));