Lines Matching refs:flags

66 static int esp32_pin_apply_config(uint32_t pin, uint32_t flags)  in esp32_pin_apply_config()  argument
90 if (flags & ESP32_PULL_UP_FLAG) { in esp32_pin_apply_config()
108 } else if (flags & ESP32_PULL_DOWN_FLAG) { in esp32_pin_apply_config()
128 if (flags & ESP32_DIR_OUT_FLAG) { in esp32_pin_apply_config()
134 if (flags & ESP32_OPEN_DRAIN_FLAG) { in esp32_pin_apply_config()
141 if (flags & ESP32_PIN_OUT_HIGH_FLAG) { in esp32_pin_apply_config()
143 } else if (flags & ESP32_PIN_OUT_LOW_FLAG) { in esp32_pin_apply_config()
150 if (!(flags & ESP32_PIN_OUT_EN_FLAG)) { in esp32_pin_apply_config()
155 if (flags & ESP32_DIR_INP_FLAG) { in esp32_pin_apply_config()
158 if (!(flags & ESP32_PIN_IN_EN_FLAG)) { in esp32_pin_apply_config()
173 uint32_t flags = 0; in esp32_pin_configure() local
187 flags |= ESP32_PULL_UP_FLAG; in esp32_pin_configure()
190 flags |= ESP32_PULL_DOWN_FLAG; in esp32_pin_configure()
198 flags |= ESP32_PUSH_PULL_FLAG; in esp32_pin_configure()
201 flags |= ESP32_OPEN_DRAIN_FLAG; in esp32_pin_configure()
212 flags |= ESP32_DIR_INP_FLAG; in esp32_pin_configure()
216 flags |= ESP32_DIR_OUT_FLAG; in esp32_pin_configure()
221 flags |= ESP32_PIN_OUT_HIGH_FLAG; in esp32_pin_configure()
224 flags |= ESP32_PIN_OUT_LOW_FLAG; in esp32_pin_configure()
232 flags |= ESP32_PIN_OUT_EN_FLAG; in esp32_pin_configure()
235 flags |= ESP32_PIN_IN_EN_FLAG; in esp32_pin_configure()
241 if (flags & ESP32_PIN_OUT_HIGH_FLAG) { in esp32_pin_configure()
255 if (flags & ESP32_PIN_OUT_LOW_FLAG) { in esp32_pin_configure()
269 esp32_pin_apply_config(pin_num, flags); in esp32_pin_configure()
271 if (flags & ESP32_DIR_OUT_FLAG) { in esp32_pin_configure()
275 if (flags & ESP32_DIR_INP_FLAG) { in esp32_pin_configure()