Lines Matching refs:expected
57 static void assert_gpio_hog_config(const struct gpio_dt_spec *spec, gpio_flags_t expected) in assert_gpio_hog_config() argument
73 zassert_equal(actual & expected, expected, in assert_gpio_hog_config()
75 spec->port->name, spec->pin, actual, expected); in assert_gpio_hog_config()
80 gpio_flags_t expected = GPIO_OUTPUT; in ZTEST() local
83 expected |= GPIO_OUTPUT_INIT_LOW; in ZTEST()
85 expected |= GPIO_OUTPUT_INIT_HIGH; in ZTEST()
88 assert_gpio_hog_config(&output_high_gpio, expected); in ZTEST()
93 gpio_flags_t expected = GPIO_OUTPUT; in ZTEST() local
96 expected |= GPIO_OUTPUT_INIT_LOW; in ZTEST()
98 expected |= GPIO_OUTPUT_INIT_HIGH; in ZTEST()
101 assert_gpio_hog_config(&output_low_gpio, expected); in ZTEST()