D | test_pwm_loopback.c | 23 void get_test_pwms(struct test_pwm *out, struct test_pwm *in) in get_test_pwms() argument 32 in->dev = DEVICE_DT_GET(PWM_LOOPBACK_IN_CTLR); in get_test_pwms() 33 in->pwm = PWM_LOOPBACK_IN_CHANNEL; in get_test_pwms() 34 in->flags = PWM_LOOPBACK_IN_FLAGS; in get_test_pwms() 35 zassert_true(device_is_ready(in->dev), "pwm loopback input device is not ready"); in get_test_pwms() 41 struct test_pwm in; in test_capture() local 47 get_test_pwms(&out, &in); in test_capture() 74 err = pwm_capture_nsec(in.dev, in.pwm, flags, &period_capture, in test_capture() 79 err = pwm_capture_usec(in.dev, in.pwm, flags, &period_capture, in test_capture() 158 struct test_pwm in; in ZTEST_USER() local [all …]
|