Lines Matching full:period
15 * -# Set PWM period and pulse using pwm_set_cycles() or pwm_set().
20 * of period and pulse.
21 * Always on -> Period : Pulse (1 : 1) -> 3.3V
22 * Half on -> Period : Pulse (2 : 1) -> 1.65V
23 * Always off -> Period : Pulse (1 : 0) -> 0V
122 static int test_task(uint32_t port, uint32_t period, uint32_t pulse, uint8_t unit) in test_task() argument
124 TC_PRINT("[PWM]: %" PRIu8 ", [period]: %" PRIu32 ", [pulse]: %" PRIu32 "\n", in test_task()
125 port, period, pulse); in test_task()
136 if (pwm_set_cycles(pwm_dev, port, period, pulse, 0)) { in test_task()
137 TC_PRINT("Fail to set the period and pulse width\n"); in test_task()
142 if (pwm_set(pwm_dev, port, period, pulse, 0)) { in test_task()
143 TC_PRINT("Fail to set the period and pulse width\n"); in test_task()
153 /* Period : Pulse (2000000 : 1000000), unit (nsec). Voltage : 1.65V */ in ZTEST_USER()
158 /* Period : Pulse (2000000 : 2000000), unit (nsec). Voltage : 3.3V */ in ZTEST_USER()
163 /* Period : Pulse (2000000 : 0), unit (nsec). Voltage : 0V */ in ZTEST_USER()
171 /* Period : Pulse (64000 : 32000), unit (cycle). Voltage : 1.65V */ in ZTEST_USER()
176 /* Period : Pulse (64000 : 64000), unit (cycle). Voltage : 3.3V */ in ZTEST_USER()
181 /* Period : Pulse (64000 : 0), unit (cycle). Voltage : 0V */ in ZTEST_USER()
192 TC_PRINT("[PWM]: %" PRIu8 ", [period]: %" PRIu32 ", [pulse]: %" PRIu32 "\n", in ZTEST_USER()