Home
last modified time | relevance | path

Searched refs:new_mode (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_gd32_afio.c148 uint8_t new_mode; in configure_pin() local
150 new_mode = configure_spd(port, pin_bit, GD32_OSPEED_GET(pin)); in configure_pin()
153 new_mode |= GPIO_MODE_ALT_PP; in configure_pin()
155 new_mode |= GPIO_MODE_ALT_OD; in configure_pin()
158 reg_val |= GPIO_MODE_SET(pin_num, new_mode); in configure_pin()
/Zephyr-latest/drivers/wifi/esp_at/
Desp.c124 uint8_t new_mode = esp_mode_from_flags(data); in esp_mode_switch_if_needed() local
128 if (old_mode == new_mode) { in esp_mode_switch_if_needed()
132 data->mode = new_mode; in esp_mode_switch_if_needed()
134 err = esp_mode_switch(data, new_mode); in esp_mode_switch_if_needed()
139 if (!(old_mode & ESP_MODE_STA) && (new_mode & ESP_MODE_STA)) { in esp_mode_switch_if_needed()