Home
last modified time | relevance | path

Searched refs:gpio_pin_set_dt (Results 1 – 25 of 166) sorted by relevance

1234567

/Zephyr-latest/drivers/mipi_dbi/
Dmipi_dbi_bitbang.c78 gpio_pin_set_dt(&config->data[i], (value & (1 << i)) != 0); in mipi_dbi_bitbang_set_data_gpios()
103 gpio_pin_set_dt(&config->cs, 1); in mipi_dbi_bitbang_write_helper()
105 gpio_pin_set_dt(&config->wr, 0); in mipi_dbi_bitbang_write_helper()
106 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_bitbang_write_helper()
108 gpio_pin_set_dt(&config->wr, 1); in mipi_dbi_bitbang_write_helper()
111 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_bitbang_write_helper()
114 gpio_pin_set_dt(&config->wr, 0); in mipi_dbi_bitbang_write_helper()
116 gpio_pin_set_dt(&config->wr, 1); in mipi_dbi_bitbang_write_helper()
120 gpio_pin_set_dt(&config->cs, 0); in mipi_dbi_bitbang_write_helper()
127 gpio_pin_set_dt(&config->cs, 1); in mipi_dbi_bitbang_write_helper()
[all …]
Dmipi_dbi_spi.c139 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_write_helper_4wire_8bit()
151 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_8bit()
192 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_write_helper_4wire_16bit()
201 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_16bit()
219 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_write_helper_4wire_16bit()
414 gpio_pin_set_dt(&config->cmd_data, 0); in mipi_dbi_spi_read_helper_4wire()
427 gpio_pin_set_dt(&config->cmd_data, 1); in mipi_dbi_spi_read_helper_4wire()
492 ret = gpio_pin_set_dt(&config->reset, 1); in mipi_dbi_spi_reset()
497 return gpio_pin_set_dt(&config->reset, 0); in mipi_dbi_spi_reset()
/Zephyr-latest/tests/drivers/comparator/gpio_loopback/src/
Dtest.c33 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in test_before()
45 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
49 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
56 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
59 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
69 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
73 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
83 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
86 zassert_ok(gpio_pin_set_dt(&test_pin, 0)); in ZTEST()
97 zassert_ok(gpio_pin_set_dt(&test_pin, 1)); in ZTEST()
[all …]
/Zephyr-latest/samples/subsys/usb_c/source/src/
Dpower_ctrl.c49 gpio_pin_set_dt(&vconn1_en, 0); in vconn_ctrl_set()
50 gpio_pin_set_dt(&vconn2_en, 0); in vconn_ctrl_set()
53 gpio_pin_set_dt(&vconn1_en, 1); in vconn_ctrl_set()
54 gpio_pin_set_dt(&vconn2_en, 0); in vconn_ctrl_set()
57 gpio_pin_set_dt(&vconn1_en, 0); in vconn_ctrl_set()
58 gpio_pin_set_dt(&vconn2_en, 1); in vconn_ctrl_set()
150 ret = gpio_pin_set_dt(&source_en, 1); in power_ctrl_init()
156 ret = gpio_pin_set_dt(&dcdc_en, 1); in power_ctrl_init()
/Zephyr-latest/drivers/wifi/winc1500/
Dwifi_winc1500_nm_bsp.c54 gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 0); in nm_bsp_reset()
55 gpio_pin_set_dt(&winc1500_config.reset_gpio, 0); in nm_bsp_reset()
58 gpio_pin_set_dt(&winc1500_config.chip_en_gpio, 1); in nm_bsp_reset()
61 gpio_pin_set_dt(&winc1500_config.reset_gpio, 1); in nm_bsp_reset()
/Zephyr-latest/drivers/led_strip/
Dtlc59731.c65 fret = gpio_pin_set_dt(led_dev, TLC59731_HIGH); in rgb_pulse()
70 fret = gpio_pin_set_dt(led_dev, TLC59731_LOW); in rgb_pulse()
166 err = gpio_pin_set_dt(led, TLC59731_LOW); in tlc59731_gpio_init()
173 gpio_pin_set_dt(led, TLC59731_HIGH); in tlc59731_gpio_init()
174 gpio_pin_set_dt(led, TLC59731_LOW); in tlc59731_gpio_init()
/Zephyr-latest/drivers/dp/
Dswdp_bitbang.c96 gpio_pin_set_dt(&config->clk, 1); in pin_swclk_set()
108 gpio_pin_set_dt(&config->clk, 0); in pin_swclk_clr()
121 gpio_pin_set_dt(&config->dout, 1); in pin_swdio_set()
127 gpio_pin_set_dt(&config->dio, 1); in pin_swdio_set()
141 gpio_pin_set_dt(&config->dout, 0); in pin_swdio_clr()
147 gpio_pin_set_dt(&config->dio, 0); in pin_swdio_clr()
187 gpio_pin_set_dt(&config->dnoe, 1); in pin_swdio_out_enable()
209 gpio_pin_set_dt(&config->dnoe, 0); in pin_swdio_out_disable()
468 gpio_pin_set_dt(&config->clk, 1); in sw_set_pins()
470 gpio_pin_set_dt(&config->clk, 0); in sw_set_pins()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx_iface.c32 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
33 gpio_pin_set_dt(&conf->slptr_gpio, 0); in rf2xx_iface_phy_rst()
38 gpio_pin_set_dt(&conf->reset_gpio, 1); in rf2xx_iface_phy_rst()
40 gpio_pin_set_dt(&conf->reset_gpio, 0); in rf2xx_iface_phy_rst()
47 gpio_pin_set_dt(&conf->slptr_gpio, 1); in rf2xx_iface_phy_tx_start()
51 gpio_pin_set_dt(&conf->slptr_gpio, 0); in rf2xx_iface_phy_tx_start()
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c275 gpio_pin_set_dt(&led0_gpio, ((i % 4) == 0) ? 1 : 0); in led_pattern_out()
276 gpio_pin_set_dt(&led1_gpio, ((i % 4) == 1) ? 1 : 0); in led_pattern_out()
277 gpio_pin_set_dt(&led2_gpio, ((i % 4) == 2) ? 1 : 0); in led_pattern_out()
278 gpio_pin_set_dt(&led3_gpio, ((i % 4) == 3) ? 1 : 0); in led_pattern_out()
283 gpio_pin_set_dt(&led0_gpio, 0); in led_pattern_out()
284 gpio_pin_set_dt(&led1_gpio, 0); in led_pattern_out()
285 gpio_pin_set_dt(&led2_gpio, 0); in led_pattern_out()
286 gpio_pin_set_dt(&led3_gpio, 0); in led_pattern_out()
/Zephyr-latest/drivers/wifi/infineon/
Dairoc_whd_hal_common.c44 ret = gpio_pin_set_dt(&config->wifi_reg_on_gpio, 0); in airoc_wifi_power_on()
53 ret = gpio_pin_set_dt(&config->wifi_reg_on_gpio, 1); in airoc_wifi_power_on()
/Zephyr-latest/drivers/w1/
Dw1_zephyr_gpio.c147 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_reset_bus()
153 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_reset_bus()
182 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_read_bit()
188 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_read_bit()
217 ret = gpio_pin_set_dt(spec, 0); in w1_gpio_write_bit()
223 ret = gpio_pin_set_dt(spec, 1); in w1_gpio_write_bit()
/Zephyr-latest/drivers/stepper/adi_tmc/
Dadi_tmc22xx_stepper_controller.c34 return gpio_pin_set_dt(&config->enable_pin, 1); in tmc22xx_stepper_enable()
36 return gpio_pin_set_dt(&config->enable_pin, 0); in tmc22xx_stepper_enable()
57 ret = gpio_pin_set_dt(&config->msx_pins[0], i & 0x01); in tmc22xx_stepper_set_micro_step_res()
63 ret = gpio_pin_set_dt(&config->msx_pins[1], (i & 0x02) >> 1); in tmc22xx_stepper_set_micro_step_res()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/
Dmain.c92 gpio_pin_set_dt(&led_device[1], vnd_user_data.current == STATE_ON); in update_vnd_led_gpio()
106 gpio_pin_set_dt(&led_device[0], ctl->light->current); in update_led_gpio()
108 gpio_pin_set_dt(&led_device[2], power < 50); in update_led_gpio()
109 gpio_pin_set_dt(&led_device[3], color < 50); in update_led_gpio()
/Zephyr-latest/drivers/lora/
Dsx126x_standalone.c25 gpio_pin_set_dt(&sx126x_gpio_reset, 1); in sx126x_reset()
27 gpio_pin_set_dt(&sx126x_gpio_reset, 0); in sx126x_reset()
Dsx127x.c233 gpio_pin_set_dt(&dev_config.antenna_enable, val); in sx127x_antenna_enable()
240 gpio_pin_set_dt(&dev_config.rfi_enable, val); in sx127x_rfi_enable()
247 gpio_pin_set_dt(&dev_config.rfo_enable, val); in sx127x_rfo_enable()
254 gpio_pin_set_dt(&dev_config.pa_boost_enable, val); in sx127x_pa_boost_enable()
284 gpio_pin_set_dt(&dev_config.tcxo_power, 1); in SX127xSetBoardTcxo()
290 gpio_pin_set_dt(&dev_config.tcxo_power, 0); in SX127xSetBoardTcxo()
323 gpio_pin_set_dt(&dev_config.reset, 1); in SX127xReset()
327 gpio_pin_set_dt(&dev_config.reset, 0); in SX127xReset()
602 gpio_pin_set_dt(&dev_config.reset, 0); in sx127x_lora_init()
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c278 gpio_pin_set_dt(&led0_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
279 gpio_pin_set_dt(&led1_gpio, ((i % 2) == 1) ? 1 : 0); in led_pattern_out()
285 gpio_pin_set_dt(&led0_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
286 gpio_pin_set_dt(&led1_gpio, ((i % 2) == 0) ? 1 : 0); in led_pattern_out()
291 gpio_pin_set_dt(&led0_gpio, 0); in led_pattern_out()
292 gpio_pin_set_dt(&led1_gpio, 0); in led_pattern_out()
/Zephyr-latest/modules/nrf_wifi/bus/
Drpu_hw_if.c228 ret = gpio_pin_set_dt(&bucken_spec, 1); in rpu_pwron()
236 ret = gpio_pin_set_dt(&iovdd_ctrl_spec, 1); in rpu_pwron()
239 gpio_pin_set_dt(&bucken_spec, 0); in rpu_pwron()
263 ret = gpio_pin_set_dt(&bucken_spec, 0); /* BUCKEN = 0 */ in rpu_pwroff()
269 ret = gpio_pin_set_dt(&iovdd_ctrl_spec, 0); /* IOVDD CNTRL = 0 */ in rpu_pwroff()
/Zephyr-latest/drivers/i2c/
Dgpio_i2c_switch.c54 gpio_pin_set_dt(&config->gpio, 1); in gpio_i2c_switch_transfer()
60 gpio_pin_set_dt(&config->gpio, 0); in gpio_i2c_switch_transfer()
/Zephyr-latest/drivers/regulator/
Dregulator_fixed.c36 ret = gpio_pin_set_dt(&cfg->enable, 1); in regulator_fixed_enable()
52 return gpio_pin_set_dt(&cfg->enable, 0); in regulator_fixed_disable()
/Zephyr-latest/drivers/stepper/ti/
Ddrv8424.c68 ret = gpio_pin_set_dt(pin, 0); in drv8424_set_microstep_pin()
71 ret = gpio_pin_set_dt(pin, 1); in drv8424_set_microstep_pin()
136 ret = gpio_pin_set_dt(&config->sleep_pin, !enable); in drv8424_enable()
145 ret = gpio_pin_set_dt(&config->en_pin, enable); in drv8424_enable()
156 gpio_pin_set_dt(&config->common.step_pin, 0); in drv8424_enable()
/Zephyr-latest/drivers/mdio/
Dmdio_gpio.c34 gpio_pin_set_dt(&dev_cfg->mdc_gpio, 1); in mdio_gpio_clock_the_bit()
36 gpio_pin_set_dt(&dev_cfg->mdc_gpio, 0); in mdio_gpio_clock_the_bit()
70 gpio_pin_set_dt(&dev_cfg->mdio_gpio, (v_data & MDIO_GPIO_MSB) ? 1 : 0); in mdio_gpio_write()
/Zephyr-latest/samples/basic/custom_dts_binding/src/
Dmain.c43 err = gpio_pin_set_dt(&load_switch, 1); in main()
/Zephyr-latest/drivers/wifi/nrf_wifi/src/
Dcoex.c249 gpio_pin_set_dt(&sr_rf_switch_spec, 0x0); in nrf_wifi_config_sr_switch()
251 gpio_pin_set_dt(&sr_rf_switch_spec, 0x1); in nrf_wifi_config_sr_switch()
324 ret = gpio_pin_set_dt(&sr_rf_switch_spec, ant_switch & 0x1); in sr_ant_switch()
/Zephyr-latest/drivers/can/transceiver/
Dcan_transceiver_gpio.c40 err = gpio_pin_set_dt(&config->enable_gpio, enabled ? 1 : 0); in can_transceiver_gpio_set_state()
50 err = gpio_pin_set_dt(&config->standby_gpio, enabled ? 0 : 1); in can_transceiver_gpio_set_state()
/Zephyr-latest/drivers/spi/
Dspi_bitbang.c143 gpio_pin_set_dt(&info->clk_gpio, clock_state); in spi_bitbang_transceive()
180 gpio_pin_set_dt(mosi, d); in spi_bitbang_transceive()
190 gpio_pin_set_dt(&info->clk_gpio, !clock_state); in spi_bitbang_transceive()
199 gpio_pin_set_dt(&info->clk_gpio, clock_state); in spi_bitbang_transceive()

1234567