1 /*
2  * Copyright (c) 2016 Intel Corporation
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 
8 #include <zephyr/kernel.h>
9 #include <zephyr/ztest.h>
10 #include <zephyr/device.h>
11 
12 const struct device *get_pwm_device(void);
13 
pwm_basic_setup(void)14 static void *pwm_basic_setup(void)
15 {
16 	const struct device *dev = get_pwm_device();
17 
18 	zassert_true(device_is_ready(dev), "PWM device is not ready");
19 	k_object_access_grant(dev, k_current_get());
20 
21 	return NULL;
22 }
23 
24 ZTEST_SUITE(pwm_basic, NULL, pwm_basic_setup, NULL, NULL, NULL);
25